Merge pull request #22 from catseye/printable-chars-in-listing

Good catch. Merging that in 2.1.
This commit is contained in:
Michael C. Martin 2014-05-14 09:10:10 -07:00
commit f48071add9

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)