diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-08-10 06:34:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-10 06:34:59 -0700 |
commit | 256e069e2cd2627df0c02730132c7251c832818a (patch) | |
tree | a5d3304e6a8d4388a5057568eec92f6cf302e008 | |
parent | 751f93679a462ab3cd2fa17fc72c798faab92b77 (diff) | |
parent | 717b7ef414c42755309cb8240978d11838e33439 (diff) | |
download | cmd2-git-256e069e2cd2627df0c02730132c7251c832818a.tar.gz |
Merge pull request #202 from python-cmd2/pyperclip_linux
Fix for extra output at startup when using Python 2.7 on Linux
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |