From 32beecb7ba01a9dad01068622cb365431f3a756a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 14 Jun 2014 10:42:47 -0400 Subject: Now that 2to3 is no longer run on the codebase, it's safe for the templates to be syntactically incorrect (prior to substitution). --- setuptools/command/easy_install.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index ad7f4725..19ed1259 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -743,15 +743,9 @@ Please make the appropriate changes for your system and try again. """ There are a couple of template scripts in the package. This function loads one of them and prepares it for use. - - These templates use triple-quotes to escape variable - substitutions so the scripts get the 2to3 treatment when build - on Python 3. The templates cannot use triple-quotes naturally. """ raw_bytes = resource_string('setuptools', template_name) - template_str = raw_bytes.decode('utf-8') - clean_template = template_str.replace('"""', '') - return clean_template + return raw_bytes.decode('utf-8') if is_script: # See https://bitbucket.org/pypa/setuptools/issue/134 for info -- cgit v1.2.1