[Python-checkins] r64017 - sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
guilherme.polo
python-checkins at python.org
Sat Jun 7 18:32:37 CEST 2008
Author: guilherme.polo
Date: Sat Jun 7 18:32:36 2008
New Revision: 64017
Log:
Added proper unicode support where it makes sense
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 18:32:36 2008
@@ -65,7 +65,7 @@
continue
if isinstance(value, (list, tuple)):
- value = format % ' '.join(map(str, value))
+ value = format % ' '.join(map(unicode, value))
if script and value == '':
value = '{}' # empty string in Python is equivalent to {} in Tcl
@@ -1229,7 +1229,7 @@
opts, values = _format_optdict(kw, ignore='values'), kw.get('values')
# values may need special formatting if any value contains a space
if values:
- values = map(str, values)
+ values = map(unicode, values)
opts += ("-values",
' '.join(('{%s}' if ' ' in v else '%s') % v for v in values))
if iid:
More information about the Python-checkins
mailing list