mirror of
https://github.com/michaelcmartin/Ophis.git
synced 2024-12-22 03:29:55 +00:00
The ASCII characters DEL (127) and US (31) are not printable.
This commit is contained in:
parent
83b8433b77
commit
1ab61cd3be
@ -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