[Reproducible-commits] [diffoscope] 03/03: Benefit from dictionary keys() behaving as set when comparing md5sums
Jérémy Bobbio
lunar at moszumanska.debian.org
Wed Dec 2 13:17:57 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 6e2cca58d2c585c6c2d7c21c0fa595bebd4b0c52
Author: Jérémy Bobbio <lunar at debian.org>
Date: Wed Dec 2 15:15:27 2015 +0200
Benefit from dictionary keys() behaving as set when comparing md5sums
---
diffoscope/comparators/deb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diffoscope/comparators/deb.py b/diffoscope/comparators/deb.py
index b7e92cc..9968c05 100644
--- a/diffoscope/comparators/deb.py
+++ b/diffoscope/comparators/deb.py
@@ -89,7 +89,7 @@ class Md5sumsFile(File):
my_md5sums = Md5sumsFile.parse_md5sums(self.path)
other_md5sums = Md5sumsFile.parse_md5sums(other.path)
same = set()
- for path in set(my_md5sums.keys()).intersection(set(other_md5sums.keys())):
+ for path in my_md5sums.keys() & other_md5sums.keys():
if my_md5sums[path] == other_md5sums[path]:
same.add('./%s' % path)
self.container.source.container.source.container.source.set_files_with_same_content_in_data(same)
--
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