1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

reformat PEP8 and similar issues

This commit is contained in:
Patrick Kanzler
2017-01-30 00:10:14 +01:00
parent 2ea8e69c66
commit c2fc464c55
12 changed files with 35 additions and 36 deletions

View File

@@ -46,8 +46,8 @@ def print_codepage(printer, codepage):
printer._raw("{} ".format(hex(x)[2:]))
printer.set()
for y in range(0,16):
byte = six.int2byte(x*16+y)
for y in range(0, 16):
byte = six.int2byte(x * 16 + y)
if byte in (ESC, CTL_LF, CTL_FF, CTL_CR, CTL_HT, CTL_VT):
byte = ' '
@@ -56,5 +56,6 @@ def print_codepage(printer, codepage):
printer._raw(sep)
printer._raw('\n')
if __name__ == '__main__':
main()
main()