[diffoscope] 02/02: comparators.xml: Use ``name`` attribute over ``path`` to avoid leaking comparison full path in output.

Chris Lamb chris at chris-lamb.co.uk
Tue Aug 15 19:35:28 CEST 2017


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

lamby pushed a commit to branch master
in repository diffoscope.

commit bfbe5bd0088e811590a67f85b436e12ce7d54837
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Aug 15 10:35:10 2017 -0700

    comparators.xml: Use ``name`` attribute over ``path`` to avoid leaking comparison full path in output.
---
 diffoscope/comparators/xml.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/comparators/xml.py b/diffoscope/comparators/xml.py
index f88458e..963259c 100644
--- a/diffoscope/comparators/xml.py
+++ b/diffoscope/comparators/xml.py
@@ -116,8 +116,8 @@ class XMLFile(File):
         return [Difference.from_text(
             self.dumps(self),
             self.dumps(other),
-            self.path,
-            other.path,
+            self.name,
+            other.name,
         )]
 
     def dumps(self, file):

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


More information about the diffoscope mailing list