Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 251803b

Browse files
committed
#3092: fix unicode size detection in pybench
1 parent 22628c4 commit 251803b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Tools/pybench/pybench.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ def get_machine_details():
106106
print('Getting machine details...')
107107
buildno, builddate = platform.python_build()
108108
python = platform.python_version()
109-
try:
110-
chr(100000)
111-
except ValueError:
109+
if sys.maxunicode == 65535:
112110
# UCS2 build (standard)
113111
unitype = 'UCS2'
114112
else:

0 commit comments

Comments
 (0)