#3092: fix unicode size detection in pybench

This commit is contained in:
Antoine Pitrou 2008-07-22 18:03:03 +00:00
parent 22628c4d6a
commit 251803bddb

View file

@ -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: