Discussion:
[Python-3000-checkins] r65186 - python/branches/py3k/Tools/pybench/pybench.py
antoine.pitrou
2008-07-22 18:03:03 UTC
Permalink
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:

Loading...