Created
July 10, 2016 12:42
-
-
Save satyamz/9526a1eb36aab895d9c5c425f8ce0dda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py | |
index 052512d..704e436 100644 | |
--- a/diffoscope/comparators/debian.py | |
+++ b/diffoscope/comparators/debian.py | |
@@ -166,15 +166,11 @@ class DotChangesFile(DebControlFile): | |
continue | |
# Find whether files are identical or not. | |
+ | |
differences = super(DotChangesFile, self).compare(other) | |
if self.deb822.get('Files'): | |
- for i in self.deb822.get('Files'): | |
- if i['name'].endswith('.buildinfo'): | |
- self.deb822.get('Files').remove(i) | |
- | |
- for j in other.deb822.get('Files'): | |
- if j['name'].endswith('.buildinfo'): | |
- other.deb822.get('Files').remove(j) | |
+ [self.deb822.get('Files').remove(i) for i in self.deb822.get('Files') if i['name'].endswith('.buildinfo')] | |
+ [other.deb822.get('Files').remove(j) for j in other.deb822.get('Files') if j['name'].endswith('.buildinfo')] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment