diff options
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 |
commit | b22e17b2d617bef2fc00f5de29f5a4196f97a51c (patch) | |
tree | 4b7a1d28b767e3154e51f1809b637ec897df2dbc /Lib/sysconfig.py | |
parent | 4800d6470cb8bb8646963123f656a9670a52334e (diff) | |
download | cpython-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.py | 1 |
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 |