diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 10:15:45 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 10:15:45 -0500 |
commit | f678f5c1a197c504ae6703f3b4e5658f9e2db1f6 (patch) | |
tree | 1a4689ae6370c6dd8075fa6e9d32257bd8aeeb8a /setuptools/tests/py26compat.py | |
parent | 271734598e6c9fc50b4809ee223cc3281d54615c (diff) | |
download | external_python_setuptools-f678f5c1a197c504ae6703f3b4e5658f9e2db1f6.tar.gz external_python_setuptools-f678f5c1a197c504ae6703f3b4e5658f9e2db1f6.tar.bz2 external_python_setuptools-f678f5c1a197c504ae6703f3b4e5658f9e2db1f6.zip |
Remove spurious reference to self. Remove debugging code.
Diffstat (limited to 'setuptools/tests/py26compat.py')
-rw-r--r-- | setuptools/tests/py26compat.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/tests/py26compat.py b/setuptools/tests/py26compat.py index efe2f956..e120e744 100644 --- a/setuptools/tests/py26compat.py +++ b/setuptools/tests/py26compat.py @@ -20,9 +20,8 @@ def _tarfile_open_ex(*args, **kwargs): Extend result as a context manager. """ res = tarfile.open(*args, **kwargs) - res.__exit__ = lambda exc_type, exc_value, traceback: self.close() + res.__exit__ = lambda exc_type, exc_value, traceback: res.close() res.__enter__ = lambda: res return res tarfile_open = _tarfile_open_ex if sys.version_info < (2,7) else tarfile.open -tarfile_open = _tarfile_open_ex |