[Reproducible-commits] [diffoscope] 04/09: Use Python 3 compatible raise syntax
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 788c39d5e874d4679cc2717e506987e537a22bca
Author: Jérémy Bobbio <lunar at debian.org>
Date: Fri Sep 18 12:00:06 2015 +0200
Use Python 3 compatible raise syntax
The older raise syntax is no longer supported:
http://www.python.org/dev/peps/pep-3109
---
diffoscope/difference.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diffoscope/difference.py b/diffoscope/difference.py
index e1b2a9a..3a9bc14 100644
--- a/diffoscope/difference.py
+++ b/diffoscope/difference.py
@@ -185,7 +185,7 @@ class ExThread(Thread):
logger.debug('Traceback:')
for line in traceback.format_list(tb):
logger.debug(line[:-1])
- raise except_type, except_class, None
+ raise except_type(except_class)
def feed(feeder, f, end_nl_q):
--
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