The ASCII characters DEL (127) and US (31) are not printable.

This commit is contained in:
Cat's Eye Technologies 2014-04-26 13:16:15 +01:00
parent 83b8433b77
commit 1ab61cd3be
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class Listing(object):
dataline += (" %02X" * len(row)) % tuple(row)
charline = ""
for c in row:
if c < 31 or c > 127:
if c < 32 or c > 126:
charline += "."
else:
charline += chr(c)