diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-08-28 19:30:12 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-08-28 19:30:12 +0200 |
commit | c9d3d93d28f2a1f839770672f5846115d8d0e3c3 (patch) | |
tree | 2b0415593a8ad00a6110134dbdbaee7046481c01 /gbp/deb/format.py | |
parent | 8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff) |
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'gbp/deb/format.py')
-rw-r--r-- | gbp/deb/format.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/deb/format.py b/gbp/deb/format.py index 9abba73..3a4c8ab 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) |