commit | 87f3a9aac7f4b324f10b23adb1e79ad6b69117ae | [log] [tgz] |
---|---|---|
author | Éric Araujo <merwok@netwok.org> | Sat Apr 16 00:13:39 2011 +0200 |
committer | Éric Araujo <merwok@netwok.org> | Sat Apr 16 00:13:39 2011 +0200 |
tree | 3b2b2b377596b9fabc828729611840d827175ae1 | |
parent | 2a83cc61d6bd96dc05008039703827ec0438cf9c [diff] |
Fix double use of f.close(). The other one is in a finally block not seen in the diff, which I added in 3bf86785cd9c (for #10252).
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 685c84e..3b0ca85 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py
@@ -694,7 +694,6 @@ m = re.search( r'<key>ProductUserVisibleVersion</key>\s*' + r'<string>(.*?)</string>', f.read()) - f.close() if m is not None: macrelease = '.'.join(m.group(1).split('.')[:2]) # else: fall back to the default behaviour