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(): ...@@ -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:
......
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