From 9b09f6d159a7d5f4ffeaf9de4710ee869258fed7 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 1 Aug 2011 04:38:03 -0400 Subject: Corrected ValueError introduced in the last commit due to incorrect use of arg unpacking --HG-- branch : distribute extra : rebase_source : 0ebd905145e32bf072c00bc663dde8716ad4b88a --- setuptools/command/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index c1bae1c0..f44e8d4a 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1429,7 +1429,7 @@ def extract_wininst_cfg(dist_filename): # part is in bytes, but we need to read up to the first null # byte. null_byte = bytes([0]) if sys.version_info >= (2,6) else chr(0) - config, = part.split(null_byte, 1) + 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 # right encoding? -- cgit v1.2.3