diff options
| 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) |
| commit | b22e17b2d617bef2fc00f5de29f5a4196f97a51c (patch) | |
| tree | 4b7a1d28b767e3154e51f1809b637ec897df2dbc /Lib | |
| parent | 4800d6470cb8bb8646963123f656a9670a52334e (diff) | |
| download | cpython-b22e17b2d617bef2fc00f5de29f5a4196f97a51c.zip cpython-b22e17b2d617bef2fc00f5de29f5a4196f97a51c.tar.gz cpython-b22e17b2d617bef2fc00f5de29f5a4196f97a51c.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.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 77402d8..3146f30 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 |
