comparison tests/f @ 28044:e4f70e79a65f

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).
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 10 Feb 2016 22:44:28 +0900
parents 6686ae524f94
children 742cf5b979ec
comparison
equal deleted inserted replaced
28043:ac4684c21f73 28044:e4f70e79a65f
104 chunk = chunk[:opts.bytes] 104 chunk = chunk[:opts.bytes]
105 else: 105 else:
106 chunk = chunk[opts.bytes:] 106 chunk = chunk[opts.bytes:]
107 if opts.hexdump: 107 if opts.hexdump:
108 for i in range(0, len(chunk), 16): 108 for i in range(0, len(chunk), 16):
109 s = chunk[i:i+16] 109 s = chunk[i:i + 16]
110 outfile.write('%04x: %-47s |%s|\n' % 110 outfile.write('%04x: %-47s |%s|\n' %
111 (i, ' '.join('%02x' % ord(c) for c in s), 111 (i, ' '.join('%02x' % ord(c) for c in s),
112 re.sub('[^ -~]', '.', s))) 112 re.sub('[^ -~]', '.', s)))
113 if opts.dump: 113 if opts.dump:
114 if not quiet: 114 if not quiet: