From b22e17b2d617bef2fc00f5de29f5a4196f97a51c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sat, 16 Apr 2011 00:13:39 +0200 Subject: [PATCH] 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). --- Lib/sysconfig.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 77402d8ab7e..3146f305105 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -639,7 +639,6 @@ def get_platform(): m = re.search( r'ProductUserVisibleVersion\s*' + r'(.*?)', f.read()) - f.close() if m is not None: macrelease = '.'.join(m.group(1).split('.')[:2]) # else: fall back to the default behaviour