summaryrefslogtreecommitdiff
path: root/Tools/pybench/pybench.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-16 17:02:34 +0000
committerGeorg Brandl <georg@python.org>2008-05-16 17:02:34 +0000
commitdf2208e103816828efcd4b75d88c712da74c7b75 (patch)
tree07bf6cf787ff7adc1ea09e5d5367489f02abdcac /Tools/pybench/pybench.py
parentd4cd02daf474044da8a4edbdf1d8be9b1d7e21ad (diff)
downloadcpython-df2208e103816828efcd4b75d88c712da74c7b75.tar.gz
More 2to3 fixes in the Tools directory. Fixes #2893.
Diffstat (limited to 'Tools/pybench/pybench.py')
-rwxr-xr-xTools/pybench/pybench.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py
index 781b4f824d..771d7acc96 100755
--- a/Tools/pybench/pybench.py
+++ b/Tools/pybench/pybench.py
@@ -107,15 +107,13 @@ def get_machine_details():
buildno, builddate = platform.python_build()
python = platform.python_version()
try:
- unichr(100000)
+ chr(100000)
except ValueError:
# UCS2 build (standard)
- unicode = 'UCS2'
- except NameError:
- unicode = None
+ unitype = 'UCS2'
else:
# UCS4 build (most recent Linux distros)
- unicode = 'UCS4'
+ unitype = 'UCS4'
bits, linkage = platform.architecture()
return {
'platform': platform.platform(),
@@ -127,7 +125,7 @@ def get_machine_details():
'compiler': platform.python_compiler(),
'buildno': buildno,
'builddate': builddate,
- 'unicode': unicode,
+ 'unicode': unitype,
'bits': bits,
}