diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-28 07:24:50 +0200 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-28 07:24:50 +0200 |
commit | eba9c893a275bc07e8f7e32f46bee0e2e2af7ff3 (patch) | |
tree | ac6ce7a9b469618b1a0e04b5f233be5146f0c7ae /ez_setup.py | |
parent | 72192792996ccfa39c12d0d7a6594e3531e47568 (diff) | |
download | external_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 'ez_setup.py')
-rw-r--r-- | ez_setup.py | 2 |
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 |