#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...') print('Getting machine details...')
buildno, builddate = platform.python_build() buildno, builddate = platform.python_build()
python = platform.python_version() python = platform.python_version()
try: if sys.maxunicode == 65535:
chr(100000)
except ValueError:
# UCS2 build (standard) # UCS2 build (standard)
unitype = 'UCS2' unitype = 'UCS2'
else: else: