Skip to content

Commit 256e069

Browse files
authored
Merge pull request #202 from python-cmd2/pyperclip_linux
Fix for extra output at startup when using Python 2.7 on Linux
2 parents 751f936 + 717b7ef commit 256e069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def new_func(instance, arg):
308308
# Can we access the clipboard? Should always be true on Windows and Mac, but only sometimes on Linux
309309
# noinspection PyUnresolvedReferences
310310
try:
311-
if six.PY3 and sys.platform.startswith('linux'):
311+
if sys.platform.startswith('linux'):
312312
# Avoid extraneous output to stderr from xclip when clipboard is empty at cost of overwriting clipboard contents
313313
pyperclip.copy('')
314314
else:

0 commit comments

Comments
 (0)