mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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...')
|
||||
buildno, builddate = platform.python_build()
|
||||
python = platform.python_version()
|
||||
try:
|
||||
chr(100000)
|
||||
except ValueError:
|
||||
if sys.maxunicode == 65535:
|
||||
# UCS2 build (standard)
|
||||
unitype = 'UCS2'
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue