[diffoscope] 03/12: fix pep8 E127

Mattia Rizzolo mattia at debian.org
Sat Sep 9 22:04:39 CEST 2017


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository diffoscope.

commit afa3013615ddb21468dce9f008723263cc73e1c6
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sat Sep 9 21:37:08 2017 +0200

    fix pep8 E127
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 diffoscope/comparators/cbfs.py | 6 +++---
 diffoscope/comparators/git.py  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/diffoscope/comparators/cbfs.py b/diffoscope/comparators/cbfs.py
index 0002bbb..be5e0ed 100644
--- a/diffoscope/comparators/cbfs.py
+++ b/diffoscope/comparators/cbfs.py
@@ -92,9 +92,9 @@ CBFS_MAXIMUM_FILE_SIZE = 24 * 2 ** 20 # 24 MiB
 def is_header_valid(buf, size, offset=0):
     magic, version, romsize, bootblocksize, align, cbfs_offset, architecture, pad = struct.unpack_from('!IIIIIIII', buf, offset)
     return magic == CBFS_HEADER_MAGIC and \
-           (version == CBFS_HEADER_VERSION1 or version == CBFS_HEADER_VERSION2) and \
-           (romsize <= size) and \
-           (cbfs_offset < romsize)
+        (version == CBFS_HEADER_VERSION1 or version == CBFS_HEADER_VERSION2) and \
+        (romsize <= size) and \
+        (cbfs_offset < romsize)
 
 
 class CbfsFile(File):
diff --git a/diffoscope/comparators/git.py b/diffoscope/comparators/git.py
index 72c91ab..18698b9 100644
--- a/diffoscope/comparators/git.py
+++ b/diffoscope/comparators/git.py
@@ -55,8 +55,8 @@ def parse_entries(f):
         pos = f.tell()
 
         x['ctime'], x['ctime_nano'], x['mtime'], x['mtime_nano'], \
-                x['dev'], x['inode'], x['mode'], x['uid'], x['gid'], \
-                x['size'], x['sha'], x['flags'] = \
+        x['dev'], x['inode'], x['mode'], x['uid'], x['gid'], \
+        x['size'], x['sha'], x['flags'] = \
             struct.unpack('>LLLLLLLLLL20sH', f.read((4 * 10) + 20 + 2))
 
         x['path'] = f.read(x['flags'] & 0x0fff)

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


More information about the diffoscope mailing list