aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-28 07:24:50 +0200
committerJason R. Coombs <jaraco@jaraco.com>2014-05-28 07:24:50 +0200
commiteba9c893a275bc07e8f7e32f46bee0e2e2af7ff3 (patch)
treeac6ce7a9b469618b1a0e04b5f233be5146f0c7ae /pkg_resources.py
parent72192792996ccfa39c12d0d7a6594e3531e47568 (diff)
downloadexternal_python_setuptools-eba9c893a275bc07e8f7e32f46bee0e2e2af7ff3.tar.gz
external_python_setuptools-eba9c893a275bc07e8f7e32f46bee0e2e2af7ff3.tar.bz2
external_python_setuptools-eba9c893a275bc07e8f7e32f46bee0e2e2af7ff3.zip
Suppress arguments to __new__. ZipFile doesn't want them, and object deprecates them.
--HG-- extra : amend_source : e41a2567b4174ef2eff09f3aa3f2a7faf214e054
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 1f8c3183..5734989d 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1576,7 +1576,7 @@ class ContextualZipFile(zipfile.ZipFile):
"""
if hasattr(zipfile.ZipFile, '__exit__'):
return zipfile.ZipFile(*args, **kwargs)
- return super(ContextualZipFile, cls).__new__(cls, *args, **kwargs)
+ return super(ContextualZipFile, cls).__new__(cls)
class ZipProvider(EggProvider):