[diffoscope] 02/02: Pass a str for the path in the JSON comparator.

Chris Lamb chris at chris-lamb.co.uk
Sun Aug 14 22:21:46 CEST 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 4e1be386c8d90c6ce6cba6ae47938ff3a4d7c624
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Aug 14 21:19:46 2016 +0100

    Pass a str for the path in the JSON comparator.
---
 diffoscope/comparators/json.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/comparators/json.py b/diffoscope/comparators/json.py
index 06eae63..b89cdea 100644
--- a/diffoscope/comparators/json.py
+++ b/diffoscope/comparators/json.py
@@ -44,6 +44,6 @@ class JSONFile(File):
         return [Difference.from_text(
             json.dumps(self.parsed, indent=4, sort_keys=True),
             json.dumps(other.parsed, indent=4, sort_keys=True),
-            self,
-            other,
+            self.path,
+            other.path,
         )]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list