#13054: fix usage of sys.maxunicode after PEP-393.

This commit is contained in:
Ezio Melotti 2011-10-04 19:06:00 +03:00
parent b7591d4780
commit a9860aeb08
7 changed files with 15 additions and 38 deletions

View file

@ -107,6 +107,7 @@ def get_machine_details():
print('Getting machine details...')
buildno, builddate = platform.python_build()
python = platform.python_version()
# XXX this is now always UCS4, maybe replace it with 'PEP393' in 3.3+?
if sys.maxunicode == 65535:
# UCS2 build (standard)
unitype = 'UCS2'