]> granicus.if.org Git - python/commitdiff
#3092: fix unicode size detection in pybench
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 22 Jul 2008 18:03:03 +0000 (18:03 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 22 Jul 2008 18:03:03 +0000 (18:03 +0000)
Tools/pybench/pybench.py

index 771d7acc968410868bd9c5cc3a72dd839b5f10e6..4c5ea26a95f7e7066ddae55b1013b24c5a088f61 100755 (executable)
@@ -106,9 +106,7 @@ def get_machine_details():
         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: