aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/dch.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/dch.py
parent5bdb21912c94d86f20330b4b611670ea4ff1d187 (diff)
dch, rpm_dch: execfile is no more
Diffstat (limited to 'gbp/scripts/dch.py')
-rw-r--r--gbp/scripts/dch.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index 18e86de7..a4ba0667 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -251,9 +251,8 @@ def has_snapshot_banner(cp):
def get_customizations(customization_file):
if customization_file:
- execfile(customization_file,
- user_customizations,
- user_customizations)
+ with open(customization_file) as f:
+ exec(f, user_customizations, user_customizations)
def process_options(options, parser):