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 | 76df00ef826b833a933677f5dd11e433c7bd217d (patch) | |
tree | 6ab579b42940509fe5b06100e66e7d3007f0134d /Lib/sysconfig.py | |
parent | 1148c7a6ba3523232b2b9fde5304987f55722bbc (diff) | |
download | cpython-76df00ef826b833a933677f5dd11e433c7bd217d.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 685c84ea5e..3b0ca85fbb 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 |