summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorHans Lellelid <hans@xmpl.org>2016-02-18 21:49:15 -0500
committerFederico Ceratto <federico.ceratto@gmail.com>2016-02-20 15:54:27 +0000
commit6ee37b45de8d2a8a1fe9f4db7f7a4b77f216b9ed (patch)
treeba7cfc128a252a8bf7d7e6021334f674b09cfbda /cmd2.py
parenta4af014d66d213e9817e60c76c5582b6ea25a29c (diff)
downloadcmd2-git-6ee37b45de8d2a8a1fe9f4db7f7a4b77f216b9ed.tar.gz
subprocess.mswindows does not exist in python3.5
Am hoping that the sys.platform (https://docs.python.org/2/library/sys.html#sys.platform) check is sufficient, though perhaps there was a reason this was not done initially.
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 63e422f3..4b119589 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -190,7 +190,7 @@ pastebufferr = """Redirecting to or from paste buffer requires %s
to be installed on operating system.
%s"""
-if subprocess.mswindows:
+if sys.platform == "win32":
try:
import win32clipboard
def get_paste_buffer():