From patchwork Wed Feb 10 13:58:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3,of,9] f: add whitespace around operator From: Katsunori FUJIWARA X-Patchwork-Id: 13090 Message-Id: <3b132cd1f99f59a01465.1455112721@feefifofum> To: mercurial-devel@mercurial-scm.org Date: Wed, 10 Feb 2016 22:58:41 +0900 # HG changeset patch # User FUJIWARA Katsunori # Date 1455111868 -32400 # Wed Feb 10 22:44:28 2016 +0900 # Node ID 3b132cd1f99f59a01465b4be596d5004af05ef33 # Parent 75c65dd964945dfe1e2b3f1a7a46d4c1586cde4a f: add whitespace around operator This is fixing for 'missing whitespace in expression' check-code rule. check-code has overlooked this, because a file isn't recognized as one to be checked (this problem is fixed by subsequent patch). diff --git a/tests/f b/tests/f --- a/tests/f +++ b/tests/f @@ -106,7 +106,7 @@ def visit(opts, filenames, outfile): chunk = chunk[opts.bytes:] if opts.hexdump: for i in range(0, len(chunk), 16): - s = chunk[i:i+16] + s = chunk[i:i + 16] outfile.write('%04x: %-47s |%s|\n' % (i, ' '.join('%02x' % ord(c) for c in s), re.sub('[^ -~]', '.', s)))