summaryrefslogtreecommitdiff
path: root/gbp/scripts/dch.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-08-28 19:30:12 +0200
committerGuido Günther <agx@sigxcpu.org>2013-08-28 19:30:12 +0200
commitc9d3d93d28f2a1f839770672f5846115d8d0e3c3 (patch)
tree2b0415593a8ad00a6110134dbdbaee7046481c01 /gbp/scripts/dch.py
parent8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff)
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'gbp/scripts/dch.py')
-rw-r--r--gbp/scripts/dch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index eb4de5a..a848d6d 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -126,8 +126,8 @@ def mangle_changelog(changelog, cp, snapshot=''):
"""
try:
tmpfile = '%s.%s' % (changelog, snapshot)
- cw = file(tmpfile, 'w')
- cr = file(changelog, 'r')
+ cw = open(tmpfile, 'w')
+ cr = open(changelog, 'r')
print >>cw, ("%(Source)s (%(MangledVersion)s) "
"%(Distribution)s; urgency=%(urgency)s\n" % cp)