diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-17 20:24:17 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-17 20:24:17 -0400 |
commit | 63a20663696e2fa0db031960e22e5c46388c2cb2 (patch) | |
tree | d9abb8a190e695cba35aca7493b349539a25a490 /ez_setup.py | |
parent | 408b1d03cf11a9e9ce0855d12193174e520637aa (diff) | |
download | python-setuptools-bitbucket-63a20663696e2fa0db031960e22e5c46388c2cb2.tar.gz |
Refactor test
Diffstat (limited to 'ez_setup.py')
-rw-r--r-- | ez_setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ez_setup.py b/ez_setup.py index a6c3ef48..8d2199d5 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -78,8 +78,8 @@ def get_zip_class(): return self def __exit__(self, type, value, traceback): self.close() - return zipfile.ZipFile if hasattr(zipfile.ZipFile, '__exit__') else \ - ContextualZipFile + zf_has_exit = hasattr(zipfile.ZipFile, '__exit__') + return zipfile.ZipFile if zf_has_exit else ContextualZipFile @contextlib.contextmanager |