[Reproducible-commits] [diffoscope] 03/09: Unify to 4 spaces everywhere.

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Aug 20 22:09:41 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 f24293b73d945b4ed159e73da2b5de52f34ee00d
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Aug 20 22:05:15 2015 +0200

    Unify to 4 spaces everywhere.
---
 diffoscope/comparators/deb.py      |  2 +-
 diffoscope/comparators/debian.py   | 14 +++++++-------
 tests/comparators/test_squashfs.py |  6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/diffoscope/comparators/deb.py b/diffoscope/comparators/deb.py
index f6dd4f4..f5257b9 100644
--- a/diffoscope/comparators/deb.py
+++ b/diffoscope/comparators/deb.py
@@ -110,7 +110,7 @@ class Md5sumsFile(File):
     @needs_content
     def compare(self, other, source=None):
         if self.has_same_content_as(other):
-           return None
+            return None
         try:
             my_md5sums = Md5sumsFile.parse_md5sums(self.path)
             other_md5sums = Md5sumsFile.parse_md5sums(other.path)
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py
index 2b521dd..6f0e4e8 100644
--- a/diffoscope/comparators/debian.py
+++ b/diffoscope/comparators/debian.py
@@ -53,13 +53,13 @@ class DotChangesMember(File):
 
     @contextmanager
     def get_content(self):
-       if self._path is not None:
-           yield
-       else:
-           with self.container.source.get_content():
-               self._path = os.path.join(os.path.dirname(self.container.source.path), self.name)
-               yield
-               self._path = None
+        if self._path is not None:
+            yield
+        else:
+            with self.container.source.get_content():
+                self._path = os.path.join(os.path.dirname(self.container.source.path), self.name)
+                yield
+                self._path = None
 
     def is_directory(self):
         return False
diff --git a/tests/comparators/test_squashfs.py b/tests/comparators/test_squashfs.py
index bc85b9a..efa58e0 100644
--- a/tests/comparators/test_squashfs.py
+++ b/tests/comparators/test_squashfs.py
@@ -47,9 +47,9 @@ def test_no_differences(squashfs1):
     assert difference is None
 
 def test_no_warnings(capfd, squashfs1, squashfs2):
-     _ = squashfs1.compare(squashfs2)
-     _, err = capfd.readouterr()
-     assert err == ''
+    _ = squashfs1.compare(squashfs2)
+    _, err = capfd.readouterr()
+    assert err == ''
 
 @pytest.fixture
 def differences(squashfs1, squashfs2):

-- 
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