[diffoscope] 03/05: comparators/directory.py: alias to_compare.

Chris Lamb chris at chris-lamb.co.uk
Mon Sep 26 18:57:54 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 1bb212bf1016e1219d93b2ae59dddbba60684aa4
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Sep 26 18:42:26 2016 +0200

    comparators/directory.py: alias to_compare.
    
    Gbp-Dch: ignore
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/directory.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/diffoscope/comparators/directory.py b/diffoscope/comparators/directory.py
index 710d92f..892c033 100644
--- a/diffoscope/comparators/directory.py
+++ b/diffoscope/comparators/directory.py
@@ -151,8 +151,9 @@ class FilesystemDirectory(object):
         other_container = DirectoryContainer(other)
         my_names = my_container.get_member_names()
         other_names = other_container.get_member_names()
+        to_compare = set(my_names).intersection(other_names)
         if True:
-            for name in sorted(set(my_names).intersection(other_names)):
+            for name in sorted(to_compare):
                 my_file = my_container.get_member(name)
                 other_file = other_container.get_member(name)
                 inner_difference = diffoscope.comparators.compare_files(

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


More information about the diffoscope mailing list