diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-14 12:14:13 -0400 | 
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-14 12:14:13 -0400 | 
| commit | 8b16c25b199767f86350fff7dfff877fd38ed48c (patch) | |
| tree | 6b5dac7657c45f87fb711e26a55ce8fe7a3d5f2f | |
| parent | 2e35b91ed2d5b6dc5be9d92e485a9915da4b83f9 (diff) | |
| download | python-setuptools-git-8b16c25b199767f86350fff7dfff877fd38ed48c.tar.gz | |
Use a more appropriate name and invoke .load directly.
| -rw-r--r-- | pkg_resources.py | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/pkg_resources.py b/pkg_resources.py index d124cb9a..e88f0d8b 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1546,7 +1546,6 @@ class ZipManifests(dict):              self[path] = (stat.st_mtime, self.build(path))          return self[path][1] -    __call__ = load      @classmethod      def build(cls, path): @@ -1566,7 +1565,7 @@ class ZipManifests(dict):                  for name in zfile.namelist()              )              return dict(items) -build_zipmanifest = ZipManifests() +zip_manifests = ZipManifests()  class ContextualZipFile(zipfile.ZipFile): @@ -1618,7 +1617,7 @@ class ZipProvider(EggProvider):      @property      def zipinfo(self): -        return build_zipmanifest(self.loader.archive)  # memoized +        return zip_manifests.load(self.loader.archive)      def get_resource_filename(self, manager, resource_name):          if not self.egg_name: | 
