Commit 05564db2 authored by Jason R. Coombs's avatar Jason R. Coombs

Fix NameError on Python 2.4, 2.5; reference #225

--HG--
branch : distribute
extra : rebase_source : b2c739a08485c49b0735f5f7544f354b46ad1d12
parent 2e6300e3
......@@ -1431,7 +1431,7 @@ def extract_wininst_cfg(dist_filename):
if sys.version_info >= (2,6):
null_byte = bytes([0])
else:
chr(0)
null_byte = chr(0)
config = part.split(null_byte, 1)[0]
# Now the config is in bytes, but on Python 3, it must be
# unicode for the RawConfigParser, so decode it. Is this the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment