Skip to content

Conversation

tleonhardt
Copy link
Member

Fix a bug where an extra line of output was printing at startup when using Python 2.7 on Linux where Pyperclip was using xclip under the hood and the clipboard was empty.

The fix involves using a different way of testing to make sure pyperclip's cut/paste functionality is working. So on Linux, cmd2 applications will now copy and empty string to the clipboard at startup just to make sure they can.

Hopefully this won't inconvenience users. It seems better than printing a line at application startup which won't make any sense to end users.

@tleonhardt tleonhardt added the bug label Aug 10, 2017
@tleonhardt tleonhardt added this to the 0.7.6 milestone Aug 10, 2017
@tleonhardt tleonhardt self-assigned this Aug 10, 2017
@codecov
Copy link

codecov bot commented Aug 10, 2017

Codecov Report

Merging #202 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #202   +/-   ##
======================================
  Coverage    96.8%   96.8%           
======================================
  Files           1       1           
  Lines        1158    1158           
======================================
  Hits         1121    1121           
  Misses         37      37
Impacted Files Coverage Δ
cmd2.py 96.8% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 751f936...717b7ef. Read the comment docs.

@tleonhardt tleonhardt merged commit 256e069 into master Aug 10, 2017
@tleonhardt tleonhardt deleted the pyperclip_linux branch August 10, 2017 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant