Show More
@@ -106,7 +106,7 b' def visit(opts, filenames, outfile):' | |||||
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))) |
General Comments 0
You need to be logged in to leave comments.
Login now