style fixes

This commit is contained in:
Patrick Kanzler 2017-01-29 23:39:26 +01:00
parent e4a21e94fc
commit 2ea8e69c66
No known key found for this signature in database
GPG Key ID: F07F07153306FCEF
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ def main():
for codepage in sys.argv[1:] or ['USA']:
dummy.set(height=2, width=2)
dummy._raw(codepage+"\n\n\n")
dummy._raw(codepage + "\n\n\n")
print_codepage(dummy, codepage)
dummy._raw("\n\n")
@ -36,14 +36,14 @@ def print_codepage(printer, codepage):
# Table header
printer.set(text_type='B')
printer._raw(" %s\n" % sep.join(map(lambda s: hex(s)[2:], range(0,16))))
printer._raw(" {}\n".format(sep.join(map(lambda s: hex(s)[2:], range(0, 16)))))
printer.set()
# The table
for x in range(0,16):
for x in range(0, 16):
# First column
printer.set(text_type='B')
printer._raw("%s " % hex(x)[2:])
printer._raw("{} ".format(hex(x)[2:]))
printer.set()
for y in range(0,16):