summaryrefslogtreecommitdiff
path: root/ez_setup.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
commit59162c6aacc3b9b28ec40363f479fe93c324ad11 (patch)
treefabf93ce45a2ca0717100e7a97a4b8595684b0c6 /ez_setup.py
parentb18a46ca2ea403917863b4469c366321abb2fe0c (diff)
downloadpython-setuptools-bitbucket-59162c6aacc3b9b28ec40363f479fe93c324ad11.tar.gz
Suppress arguments to __new__. ZipFile doesn't want them, and object deprecates them.
Diffstat (limited to 'ez_setup.py')
-rw-r--r--ez_setup.py2
1 files changed, 1 insertions, 1 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