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

@ -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):
# 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):