Commit f678f5c1 authored by Jason R. Coombs's avatar Jason R. Coombs

Remove spurious reference to self. Remove debugging code.

parent 27173459
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment