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/control.py | |
parent | 8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff) | |
download | git-buildpackage-c9d3d93d28f2a1f839770672f5846115d8d0e3c3.tar.gz git-buildpackage-c9d3d93d28f2a1f839770672f5846115d8d0e3c3.tar.bz2 git-buildpackage-c9d3d93d28f2a1f839770672f5846115d8d0e3c3.zip |
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'gbp/deb/control.py')
-rw-r--r-- | gbp/deb/control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/deb/control.py b/gbp/deb/control.py index b15d3601..a4cef2fa 100644 --- a/gbp/deb/control.py +++ b/gbp/deb/control.py @@ -47,7 +47,7 @@ class Control(object): if not os.access(filename, os.F_OK): raise NoControlError("Control file %s does not exist" % filename) - with file(filename) as f: + with open(filename) as f: control = email.message_from_file(f) if not control.items(): |