projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22628c4
)
#3092: fix unicode size detection in pybench
author
Antoine Pitrou
<solipsis@pitrou.net>
Tue, 22 Jul 2008 18:03:03 +0000
(18:03 +0000)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Tue, 22 Jul 2008 18:03:03 +0000
(18:03 +0000)
Tools/pybench/pybench.py
patch
|
blob
|
history
diff --git
a/Tools/pybench/pybench.py
b/Tools/pybench/pybench.py
index 771d7acc968410868bd9c5cc3a72dd839b5f10e6..4c5ea26a95f7e7066ddae55b1013b24c5a088f61 100755
(executable)
--- 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: