summaryrefslogtreecommitdiffstats
path: root/Tools/pybench
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-07-22 18:03:03 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-07-22 18:03:03 (GMT)
commit251803bddb79e4322bc7bc9c8f38afe84d8c89d9 (patch)
tree9e9a727aba6fb35aedde7afe90f9a1646ec49297 /Tools/pybench
parent22628c4d6a79e38371e383cc40702bf0935e355e (diff)
downloadcpython-251803bddb79e4322bc7bc9c8f38afe84d8c89d9.zip
cpython-251803bddb79e4322bc7bc9c8f38afe84d8c89d9.tar.gz
cpython-251803bddb79e4322bc7bc9c8f38afe84d8c89d9.tar.bz2
#3092: fix unicode size detection in pybench
Diffstat (limited to 'Tools/pybench')
-rwxr-xr-xTools/pybench/pybench.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py
index 771d7ac..4c5ea26 100755
--- a/Tools/pybench/pybench.py
+++ b/Tools/pybench/pybench.py
@@ -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: