summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ez_setup.py2
-rw-r--r--pkg_resources.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ez_setup.py b/ez_setup.py
index df3848a3..1f2468f9 100644
--- a/ez_setup.py
+++ b/ez_setup.py
@@ -86,7 +86,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)
@contextlib.contextmanager
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):