diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-08-22 18:57:50 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-08-22 18:57:50 (GMT) |
commit | ea03c11655dbe5a421e3ad342039c721bceeb096 (patch) | |
tree | 839711f1e9c51d8869fa1059a11ff5b9161bdd06 | |
parent | b7f136e73eda63c4bef46d2a749faf3692cddc5c (diff) | |
download | cpython-ea03c11655dbe5a421e3ad342039c721bceeb096.zip cpython-ea03c11655dbe5a421e3ad342039c721bceeb096.tar.gz cpython-ea03c11655dbe5a421e3ad342039c721bceeb096.tar.bz2 |
Fix some debugging print statements
-rw-r--r-- | Lib/idlelib/MultiCall.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py index f43f83e..8efb450 100644 --- a/Lib/idlelib/MultiCall.py +++ b/Lib/idlelib/MultiCall.py @@ -320,7 +320,8 @@ def MultiCallCreator(widget): for i in range(len(_types))] def bind(self, sequence=None, func=None, add=None): - #print "bind(%s, %s, %s) called." % (sequence, func, add) + #print("bind(%s, %s, %s)" % (sequence, func, add), + # file=sys.__stderr__) if type(sequence) is str and len(sequence) > 2 and \ sequence[:2] == "<<" and sequence[-2:] == ">>": if sequence in self.__eventinfo: @@ -348,7 +349,8 @@ def MultiCallCreator(widget): return widget.unbind(self, sequence, funcid) def event_add(self, virtual, *sequences): - #print "event_add(%s,%s) was called"%(repr(virtual),repr(sequences)) + #print("event_add(%s, %s)" % (repr(virtual), repr(sequences)), + # file=sys.__stderr__) if virtual not in self.__eventinfo: self.__eventinfo[virtual] = [None, []] @@ -356,7 +358,7 @@ def MultiCallCreator(widget): for seq in sequences: triplet = _parse_sequence(seq) if triplet is None: - #print >> sys.stderr, "Seq. %s was added by Tkinter."%seq + #print("Tkinter event_add(%s)" % seq, file=sys.__stderr__) widget.event_add(self, virtual, seq) else: if func is not None: @@ -370,7 +372,7 @@ def MultiCallCreator(widget): for seq in sequences: triplet = _parse_sequence(seq) if triplet is None: - #print >> sys.stderr, "Seq. %s was deleted by Tkinter."%seq + #print("Tkinter event_delete: %s" % seq, file=sys.__stderr__) widget.event_delete(self, virtual, seq) else: if func is not None: |