summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-04-15 22:13:39 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-04-15 22:13:39 (GMT)
commit87f3a9aac7f4b324f10b23adb1e79ad6b69117ae (patch)
tree3b2b2b377596b9fabc828729611840d827175ae1 /Lib
parent2a83cc61d6bd96dc05008039703827ec0438cf9c (diff)
downloadcpython-87f3a9aac7f4b324f10b23adb1e79ad6b69117ae.zip
cpython-87f3a9aac7f4b324f10b23adb1e79ad6b69117ae.tar.gz
cpython-87f3a9aac7f4b324f10b23adb1e79ad6b69117ae.tar.bz2
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).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sysconfig.py1
1 files changed, 0 insertions, 1 deletions
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 @@ def get_platform():
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