mirror of
https://github.com/michaelcmartin/Ophis.git
synced 2024-12-21 12:29:46 +00:00
Merge pull request #22 from catseye/printable-chars-in-listing
Good catch. Merging that in 2.1.
This commit is contained in:
commit
f48071add9
@ -55,7 +55,7 @@ class Listing(object):
|
|||||||
dataline += (" %02X" * len(row)) % tuple(row)
|
dataline += (" %02X" * len(row)) % tuple(row)
|
||||||
charline = ""
|
charline = ""
|
||||||
for c in row:
|
for c in row:
|
||||||
if c < 31 or c > 127:
|
if c < 32 or c > 126:
|
||||||
charline += "."
|
charline += "."
|
||||||
else:
|
else:
|
||||||
charline += chr(c)
|
charline += chr(c)
|
||||||
|
Loading…
Reference in New Issue
Block a user