diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 11:35:16 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 11:35:16 -0500 |
commit | 31ee62ef33d1e32b40ca175f4dd24a29b31b837a (patch) | |
tree | 38565014316a97b9fca2a7870639199d2479db23 /setuptools/command/sdist.py | |
parent | 1d6b1b2f121d19a091393b543d013cd91946581e (diff) | |
download | python-setuptools-bitbucket-31ee62ef33d1e32b40ca175f4dd24a29b31b837a.tar.gz |
Use except/as, now supported by Python 2.6
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-x | setuptools/command/sdist.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index 3d33df80..851a1775 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -70,7 +70,8 @@ class sdist(orig.sdist): try: orig.sdist.read_template(self) except: - sys.exc_info()[2].tb_next.tb_frame.f_locals['template'].close() + _, _, tb = sys.exc_info() + tb.tb_next.tb_frame.f_locals['template'].close() raise # Beginning with Python 2.7.2, 3.1.4, and 3.2.1, this leaky file handle |