[Python-checkins] r64009 - sandbox/trunk/ttk-gsoc/samples/widget_state.py

guilherme.polo python-checkins at python.org
Sat Jun 7 14:18:12 CEST 2008


Author: guilherme.polo
Date: Sat Jun  7 14:18:11 2008
New Revision: 64009

Log:
Removed unecessary py3k check.

Modified:
   sandbox/trunk/ttk-gsoc/samples/widget_state.py

Modified: sandbox/trunk/ttk-gsoc/samples/widget_state.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/samples/widget_state.py	(original)
+++ sandbox/trunk/ttk-gsoc/samples/widget_state.py	Sat Jun  7 14:18:11 2008
@@ -11,10 +11,7 @@
     states.append("!" + state)
 
 def reset_state(widget):
-    if PY3K:
-        nostate = states[len(states) // 2:]
-    else:
-        nostate = states[len(states) / 2:]
+    nostate = states[len(states) // 2:]
     widget.state(nostate)
 
 class App(ttk.Frame):


More information about the Python-checkins mailing list