From 717b7ef414c42755309cb8240978d11838e33439 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Thu, 10 Aug 2017 09:21:36 -0400 Subject: Fix for occasional extra output at startup when using Python 2.7 on Linux --- cmd2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2.py') 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: -- cgit v1.2.1