summaryrefslogtreecommitdiff
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-04-16 00:13:39 +0200
committerÉric Araujo <merwok@netwok.org>2011-04-16 00:13:39 +0200
commitb22e17b2d617bef2fc00f5de29f5a4196f97a51c (patch)
tree4b7a1d28b767e3154e51f1809b637ec897df2dbc /Lib/sysconfig.py
parent4800d6470cb8bb8646963123f656a9670a52334e (diff)
downloadcpython-git-b22e17b2d617bef2fc00f5de29f5a4196f97a51c.tar.gz
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/sysconfig.py')
-rw-r--r--Lib/sysconfig.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 77402d8ab7..3146f30510 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -639,7 +639,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