Commit b4af2345 authored by Antoine Pitrou's avatar Antoine Pitrou

#3092: fix unicode size detection in pybench

parent 4575a3a9
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment