[Reproducible-commits] [diffoscope] 12/21: Use right argument order when creating CalledProcessError

Jérémy Bobbio lunar at moszumanska.debian.org
Mon Sep 21 17:39:27 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 1768885522298fe112fe1cc65806a0e874aa5730
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Sep 19 23:54:03 2015 +0200

    Use right argument order when creating CalledProcessError
---
 diffoscope/difference.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/difference.py b/diffoscope/difference.py
index 879d917..18d5d27 100644
--- a/diffoscope/difference.py
+++ b/diffoscope/difference.py
@@ -155,7 +155,7 @@ def run_diff(fd1, fd2, end_nl_q1, end_nl_q2):
     t_read.join()
     p.wait()
     if not parser.success and p.returncode not in (0, 1):
-        raise subprocess.CalledProcessError(cmd, p.returncode, output=diff)
+        raise subprocess.CalledProcessError(p.returncode, cmd, output=diff)
     if p.returncode == 0:
         return None
     return parser.diff

-- 
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