summaryrefslogtreecommitdiff
path: root/wwwbin/clean-dups-archive.py
diff options
context:
space:
mode:
Diffstat (limited to 'wwwbin/clean-dups-archive.py')
-rwxr-xr-xwwwbin/clean-dups-archive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wwwbin/clean-dups-archive.py b/wwwbin/clean-dups-archive.py
index 293e2ee..4f0c9c6 100755
--- a/wwwbin/clean-dups-archive.py
+++ b/wwwbin/clean-dups-archive.py
@@ -19,13 +19,13 @@ ts = rpm.TransactionSet("", (rpm.RPMVSF_NOHDRCHK or rpm.RPMVSF_NEEDPAYLOAD))
def compare(f1, f2):
try:
fd1 = os.open(os.path.join(dir, f1), os.O_RDONLY)
- except Exception, e:
+ except Exception as e:
print(e)
# ignore non-files
return 0
try:
fd2 = os.open(os.path.join(dir, f2), os.O_RDONLY)
- except Exception, e:
+ except Exception as e:
print(e)
# ignore non-files
return 0