From 6e5d608b20277665392523c11d3eb16a3846263b Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Wed, 6 Feb 2019 16:04:57 +0200 Subject: [PATCH] 1337-diff: fix some pep8 complaints --- win/tools/1337-diff/1337-diff.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/win/tools/1337-diff/1337-diff.py b/win/tools/1337-diff/1337-diff.py index e8ceb97..fccef5b 100755 --- a/win/tools/1337-diff/1337-diff.py +++ b/win/tools/1337-diff/1337-diff.py @@ -76,8 +76,10 @@ def zip_files_bytes(left, right): pass end_marker = EndMarker() - left_iter = itertools.chain.from_iterable(feed_chunks(left)) - right_iter = itertools.chain.from_iterable(feed_chunks(right)) + left_iter = itertools.chain.from_iterable( + feed_chunks(left)) + right_iter = itertools.chain.from_iterable( + feed_chunks(right)) for a, b in itertools.zip_longest(left_iter, right_iter, fillvalue=end_marker): @@ -98,7 +100,8 @@ def diff(left, right, limit=None): offset += 1 -def compose_diff_file(orig, patched, output, header, *, limit=None, offset_adjustment=True): +def compose_diff_file(orig, patched, output, header, *, + limit=None, offset_adjustment=True): output.write(HEADER_FORMAT % (header.encode('latin-1'),)) adj = OFFSET_ADJUSTMENT if offset_adjustment else 0 for offset, a, b in diff(orig, patched, limit):