diff -r 886912964fec Tools/pybench/pybench.py --- a/Tools/pybench/pybench.py Thu Jun 12 20:52:31 2008 +0200 +++ b/Tools/pybench/pybench.py Thu Jun 12 21:46:17 2008 +0200 @@ -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: