diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-04-15 13:55:23 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-04-15 13:55:23 -0400 |
| commit | 48864fad436fcb2ca9f4832fbdabbb66d12b7610 (patch) | |
| tree | 3b808e4ac00a8fd55b08cd5adcb70a279eb8d351 | |
| parent | bdab866e5efd23d156b4f598f79baa2208f16157 (diff) | |
| download | python-setuptools-git-48864fad436fcb2ca9f4832fbdabbb66d12b7610.tar.gz | |
Move import to the top
| -rwxr-xr-x | setuptools/command/easy_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index d947e548..5206698f 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -28,6 +28,8 @@ import site import struct from glob import glob from distutils import log, dir_util +from distutils.command.build_scripts import first_line_re + import pkg_resources from setuptools import Command, _dont_write_bytecode @@ -1528,8 +1530,6 @@ class PthDistributions(Environment): def _first_line_re(): - from distutils.command.build_scripts import first_line_re - # first_line_re in Python >=3.1.4 and >=3.2.1 is a bytes pattern. if not isinstance(first_line_re.pattern, str): return re.compile(first_line_re.pattern.decode()) |
