Patchwork [3,of,9] f: add whitespace around operator

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Feb. 10, 2016, 1:58 p.m.
Message ID <3b132cd1f99f59a01465.1455112721@feefifofum>
Download mbox | patch
Permalink /patch/13090/
State Accepted
Delegated to: Martin von Zweigbergk
Headers show

Comments

Katsunori FUJIWARA - Feb. 10, 2016, 1:58 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# 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).

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