aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/deb/format.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/deb/format.py')
-rw-r--r--gbp/deb/format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/deb/format.py b/gbp/deb/format.py
index 9abba739..3a4c8ab3 100644
--- a/gbp/deb/format.py
+++ b/gbp/deb/format.py
@@ -92,7 +92,7 @@ class DebianSourceFormat(object):
'quilt'
>>> os.unlink(t.name)
"""
- with file(filename) as f:
+ with open(filename) as f:
return klass(f.read())
@classmethod
@@ -107,7 +107,7 @@ class DebianSourceFormat(object):
the above parameters
"""
format_file = format_file or klass.format_file
- with file(klass.format_file, 'w') as f:
+ with open(klass.format_file, 'w') as f:
f.write("%s (%s)" % (version, type))
return klass.parse_file(klass.format_file)