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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user