summaryrefslogtreecommitdiffstats
path: root/bin/list-queue
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2019-03-04 17:21:45 +1100
committerBrian May <brian@linuxpenguins.xyz>2019-03-04 17:31:32 +1100
commitdbeca9f785cb90139fde37ad0aaad61f70b5506f (patch)
treefaa44ee8494b4adb0d54a3f990cc7f1b2a4c16f0 /bin/list-queue
parenta0eedec07ab55e1a7ccf3b0892fe991150cef5b1 (diff)
Replace file() with open() for Python 3 compatability
Diffstat (limited to 'bin/list-queue')
-rwxr-xr-xbin/list-queue2
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"])

© 2014-2024 Faster IT GmbH | imprint | privacy policy