From: Antoine Pitrou Date: Tue, 22 Jul 2008 18:03:03 +0000 (+0000) Subject: #3092: fix unicode size detection in pybench X-Git-Tag: v3.0b3~247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=251803bddb79e4322bc7bc9c8f38afe84d8c89d9;p=thirdparty%2FPython%2Fcpython.git #3092: fix unicode size detection in pybench --- diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py index 771d7acc9684..4c5ea26a95f7 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: