Skip to content

Commit f11dc08

Browse files
author
y-p
committed
Merge pull request #5627 from y-p/PR_no_noise_clipboard
BUG/TST: importing util.clipboard shouldnt print to stdout (nosetests)
2 parents 59963e3 + 7486ea4 commit f11dc08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/util/clipboard.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ def xselGetClipboard():
133133
getcb = macGetClipboard
134134
setcb = macSetClipboard
135135
elif os.name == 'posix' or platform.system() == 'Linux':
136-
xclipExists = os.system('which xclip') == 0
136+
xclipExists = os.system('which xclip > /dev/null') == 0
137137
if xclipExists:
138138
getcb = xclipGetClipboard
139139
setcb = xclipSetClipboard
140140
else:
141-
xselExists = os.system('which xsel') == 0
141+
xselExists = os.system('which xsel > /dev/null') == 0
142142
if xselExists:
143143
getcb = xselGetClipboard
144144
setcb = xselSetClipboard

0 commit comments

Comments
 (0)