summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-10 09:21:36 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-10 09:21:36 -0400
commit717b7ef414c42755309cb8240978d11838e33439 (patch)
treea5d3304e6a8d4388a5057568eec92f6cf302e008 /cmd2.py
parent751f93679a462ab3cd2fa17fc72c798faab92b77 (diff)
downloadcmd2-git-717b7ef414c42755309cb8240978d11838e33439.tar.gz
Fix for occasional extra output at startup when using Python 2.7 on Linux
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 6d34a677..8c39920c 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -308,7 +308,7 @@ def options(option_list, arg_desc="arg"):
# Can we access the clipboard? Should always be true on Windows and Mac, but only sometimes on Linux
# noinspection PyUnresolvedReferences
try:
- if six.PY3 and sys.platform.startswith('linux'):
+ if sys.platform.startswith('linux'):
# Avoid extraneous output to stderr from xclip when clipboard is empty at cost of overwriting clipboard contents
pyperclip.copy('')
else: