[Python-3000-checkins] r65186 - python/branches/py3k/Tools/pybench/pybench.py

antoine.pitrou python-3000-checkins at python.org
Tue Jul 22 20:03:03 CEST 2008


Author: antoine.pitrou
Date: Tue Jul 22 20:03:03 2008
New Revision: 65186

Log:
#3092: fix unicode size detection in pybench



Modified:
   python/branches/py3k/Tools/pybench/pybench.py

Modified: python/branches/py3k/Tools/pybench/pybench.py
==============================================================================
--- python/branches/py3k/Tools/pybench/pybench.py	(original)
+++ python/branches/py3k/Tools/pybench/pybench.py	Tue Jul 22 20:03:03 2008
@@ -106,9 +106,7 @@
         print('Getting machine details...')
     buildno, builddate = platform.python_build()
     python = platform.python_version()
-    try:
-        chr(100000)
-    except ValueError:
+    if sys.maxunicode == 65535:
         # UCS2 build (standard)
         unitype = 'UCS2'
     else:


More information about the Python-3000-checkins mailing list