Skip to content

Instantly share code, notes, and snippets.

@satyamz
Created July 10, 2016 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satyamz/9526a1eb36aab895d9c5c425f8ce0dda to your computer and use it in GitHub Desktop.
Save satyamz/9526a1eb36aab895d9c5c425f8ce0dda to your computer and use it in GitHub Desktop.
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