[PATCH 3 of 9] f: add whitespace around operator
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Wed Feb 10 08:58:41 EST 2016
# HG changeset patch
# User FUJIWARA Katsunori <foozy at 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).
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)))
More information about the Mercurial-devel
mailing list