[Python-checkins] r67264 - sandbox/trunk/tkinter-polo/src/tkColorChooser.py
guilherme.polo
python-checkins at python.org
Tue Nov 18 14:59:35 CET 2008
Author: guilherme.polo
Date: Tue Nov 18 14:59:35 2008
New Revision: 67264
Log:
The weird check is no longer needed, Tcl_Obj has __nonzero__ now
Modified:
sandbox/trunk/tkinter-polo/src/tkColorChooser.py
Modified: sandbox/trunk/tkinter-polo/src/tkColorChooser.py
==============================================================================
--- sandbox/trunk/tkinter-polo/src/tkColorChooser.py (original)
+++ sandbox/trunk/tkinter-polo/src/tkColorChooser.py Tue Nov 18 14:59:35 2008
@@ -41,9 +41,7 @@
pass
def _fixresult(self, widget, result):
- # result can be somethings: an empty tuple, an empty string or
- # a Tcl_Obj, so this somewhat weird check handles that
- if not result or not str(result):
+ if not result:
return None, None # canceled
# to simplify application code, the color chooser returns
More information about the Python-checkins
mailing list