From 05564db286ce0b50ea5296adea3e462793dfcbe1 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 20 Aug 2011 07:51:48 -0600 Subject: Fix NameError on Python 2.4, 2.5; reference #225 --HG-- branch : distribute extra : rebase_source : b2c739a08485c49b0735f5f7544f354b46ad1d12 --- setuptools/command/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 263b429c..853753c1 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -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 -- cgit v1.2.3