summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas ROCHE <nroche@entrouvert.com>2022-02-18 16:48:03 (GMT)
committerNicolas ROCHE <nroche@entrouvert.com>2022-02-25 13:53:02 (GMT)
commitb2de21ed4784e79bd705c9353fc6819749b28fd8 (patch)
tree8173aabe397d75fa9ffec328e3395677c465e64e
parent4f93ac5490c29ae4f8d51649e6d3e085123f3d6c (diff)
downloadeobuilder-b2de21ed4784e79bd705c9353fc6819749b28fd8.zip
eobuilder-b2de21ed4784e79bd705c9353fc6819749b28fd8.tar.gz
eobuilder-b2de21ed4784e79bd705c9353fc6819749b28fd8.tar.bz2
settings: close local settings file (#61980)
-rw-r--r--eobuilder/settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/eobuilder/settings.py b/eobuilder/settings.py
index 799f16f..371d0e6 100644
--- a/eobuilder/settings.py
+++ b/eobuilder/settings.py
@@ -50,4 +50,5 @@ local_settings_file = os.environ.get(
'EOBUILDER_SETTINGS_FILE', os.path.join(os.path.dirname(__file__), 'local_settings.py')
)
if os.path.exists(local_settings_file):
- exec(open(local_settings_file).read())
+ with open(local_settings_file) as f:
+ exec(f.read())