aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/rpm_ch.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-08-02 01:32:37 -0300
committerGuido Günther <agx@sigxcpu.org>2017-08-02 10:35:05 -0300
commit8283155f4a12f770ec078b531a306ddd9d6e8b3b (patch)
tree014d49092c18538e34c2b30e7e88d44a4aab2c08 /gbp/scripts/rpm_ch.py
parent5bdb21912c94d86f20330b4b611670ea4ff1d187 (diff)
dch, rpm_dch: execfile is no more
Diffstat (limited to 'gbp/scripts/rpm_ch.py')
-rw-r--r--gbp/scripts/rpm_ch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/rpm_ch.py b/gbp/scripts/rpm_ch.py
index a2c4857c..5b74efa7 100644
--- a/gbp/scripts/rpm_ch.py
+++ b/gbp/scripts/rpm_ch.py
@@ -92,7 +92,8 @@ def load_customizations(customization_file):
return
customizations = {}
try:
- execfile(customization_file, customizations, customizations)
+ with open(customization_file) as f:
+ exec(f.read(), customizations, customizations)
except Exception as err:
raise GbpError("Failed to load customization file: %s" % err)