]> granicus.if.org Git - python/commitdiff
Fix double use of f.close().
authorÉric Araujo <merwok@netwok.org>
Fri, 15 Apr 2011 22:13:39 +0000 (00:13 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 15 Apr 2011 22:13:39 +0000 (00:13 +0200)
The other one is in a finally block not seen in the diff, which I added
in 3bf86785cd9c (for #10252).

Lib/sysconfig.py

index 77402d8ab7ef20a65cd2a2c5ed4bbf3758fc723b..3146f305105c5da9d6946a169bafb5926aa289a7 100644 (file)
@@ -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