mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
#3092: fix unicode size detection in pybench
This commit is contained in:
parent
22628c4d6a
commit
251803bddb
1 changed files with 1 additions and 3 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue