Commit 193b2ee5 authored by Jason R. Coombs's avatar Jason R. Coombs

Move import to top

--HG--
extra : rebase_source : 3b48a37ada247203bfebf87cdbb473b72e6e208b
parent 406b907f
...@@ -6,6 +6,7 @@ import distutils.core ...@@ -6,6 +6,7 @@ import distutils.core
import distutils.filelist import distutils.filelist
from distutils.core import Command as _Command from distutils.core import Command as _Command
from distutils.util import convert_path from distutils.util import convert_path
from fnmatch import fnmatchcase
import setuptools.version import setuptools.version
from setuptools.extension import Extension from setuptools.extension import Extension
...@@ -52,7 +53,6 @@ def find_packages(where='.', exclude=()): ...@@ -52,7 +53,6 @@ def find_packages(where='.', exclude=()):
out.append(prefix+name) out.append(prefix+name)
stack.append((fn, prefix+name+'.')) stack.append((fn, prefix+name+'.'))
for pat in exclude: for pat in exclude:
from fnmatch import fnmatchcase
out = [item for item in out if not fnmatchcase(item,pat)] out = [item for item in out if not fnmatchcase(item,pat)]
return out return out
......
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