[Python-checkins] r64006 - sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
guilherme.polo
python-checkins at python.org
Sat Jun 7 03:04:21 CEST 2008
Author: guilherme.polo
Date: Sat Jun 7 03:04:21 2008
New Revision: 64006
Log:
Removed the use of the "next" builtin so it works with python prior 2.6
Modified:
sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
Modified: sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/ttk.py (original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/ttk.py Sat Jun 7 03:04:21 2008
@@ -1413,7 +1413,7 @@
self._variable = variable
if kwargs:
raise Tkinter.TclError('unknown option -%s' % (
- next(kwargs.iterkeys())))
+ kwargs.iterkeys().next()))
self['menu'] = self._menu
self.set_menu(value, *((value, ) + values))
More information about the Python-checkins
mailing list