From c9d3d93d28f2a1f839770672f5846115d8d0e3c3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 28 Aug 2013 19:30:12 +0200 Subject: Use open() instead of file() since the later doesn't exist in python3 --- gbp/scripts/dch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gbp/scripts/dch.py') 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) -- cgit v1.2.3