[Reproducible-commits] [diffoscope] 02/09: Use 'except exc as var' syntax everywhere
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Sep 18 10:54:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit 86de08853c7940784c1c4da3478a4dfdb25b0f82
Author: Jérémy Bobbio <lunar at debian.org>
Date: Fri Sep 18 11:40:19 2015 +0200
Use 'except exc as var' syntax everywhere
Python 3 dropped the old 'except exc, var' syntax:
http://www.python.org/dev/peps/pep-3110
---
diffoscope/comparators/rpm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diffoscope/comparators/rpm.py b/diffoscope/comparators/rpm.py
index 4627a47..1330eae 100644
--- a/diffoscope/comparators/rpm.py
+++ b/diffoscope/comparators/rpm.py
@@ -33,7 +33,7 @@ def get_rpm_header(path, ts):
with open(path, 'r') as f:
try:
hdr = ts.hdrFromFdno(f)
- except rpm.error, e:
+ except rpm.error as e:
logger.error("reading rpm header failed: %s", str(e))
return str(e)
for rpmtag in sorted(rpm.tagnames):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list