diff options
author | Brian May <brian@linuxpenguins.xyz> | 2019-03-04 17:21:45 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2019-03-04 17:31:32 +1100 |
commit | 000e95f7f9466079740357c742c8cfa37f79599a (patch) | |
tree | f25356d694247cad9a3e5fa86f0b51f86c62aa31 /bin/list-queue | |
parent | 6689e227dbc2827410dfa66e40c25cbdaf3dce30 (diff) |
Replace file() with open() for Python 3 compatability
Diffstat (limited to 'bin/list-queue')
-rwxr-xr-x | bin/list-queue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/list-queue b/bin/list-queue index 556b7f5b27..2ac1e2f1de 100755 --- a/bin/list-queue +++ b/bin/list-queue @@ -176,7 +176,7 @@ def updatechanges(db, ondisk): need_update = prepareupdate(db, ondisk, indb, "changes") def do_update(): for (path, stat) in need_update: - changes = Changes(file(path)) + changes = Changes(open(path)) try: dist = changes["Distribution"] debs = set(pkg["name"] for pkg in changes["Checksums-Sha1"]) |