From 7aec4c36547d10c790a119a1ac203eee13755a6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 17 Jan 2021 11:44:31 +0100 Subject: [PATCH] Replace backtick syntax with repr() (python3 compat) --- bin/pfa-from-incoming | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pfa-from-incoming b/bin/pfa-from-incoming index 0023261..1274f68 100755 --- a/bin/pfa-from-incoming +++ b/bin/pfa-from-incoming @@ -189,7 +189,7 @@ for uploadinfo in findfiles(incoming_dir + 'SRPMS'): ftpio.log("%s file missing; skipping move until next round" % (srpm)) continue - if ftptree.has_key(`pkg`): + if ftptree.has_key(repr(pkg)): ftpio.log("%s already present in %s; removing older files" % (srpm, ftptree)) rm(default_to + 'SRPMS/RPMS/' + srpm) f = open(default_to + 'SRPMS/.metadata/' + srpm+'.info', 'a') @@ -216,7 +216,7 @@ for arch in ftp_archs: srcpkg = BasePkg(uploadinfo[:-19], content = content) srpm = srcpkg.files['SRPMS'][0] - if not ftptree.has_key(`srcpkg`): + if not ftptree.has_key(repr(srcpkg)): continue # We require the src.rpm to be present renvr = re.compile(r'(.*)-(.*)-(.*)\.[^.]*\.rpm') -- 2.44.0