Skip to content

Commit 2d4e698

Browse files
committed
Updated comment
1 parent 7ef6a8d commit 2d4e698

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cmd2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@
4646
import pyparsing
4747
import pyperclip
4848

49-
# Workaround for gtk interfering when printing from background thread while main
50-
# thread is blocking in raw_input() in Python 2 on Linux when gtk is installed
49+
# On some systems, pyperclip will import gtk for its clipboard functionality.
50+
# The following code is a workaround for gtk interfering with printing from a background
51+
# thread while the CLI thread is blocking in raw_input() in Python 2 on Linux.
5152
try:
53+
# noinspection PyUnresolvedReferences
5254
import gtk
5355
gtk.set_interactive(0)
5456
except ImportError:

0 commit comments

Comments
 (0)