1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-12-02 09:43:30 +00:00

REFACTOR replace % op with format were it is easy

This commit is contained in:
Patrick Kanzler
2016-01-08 03:43:33 +01:00
parent f25521f22f
commit 41c6afd3b8
4 changed files with 11 additions and 11 deletions

View File

@@ -90,7 +90,7 @@ def echo(args): # pylint: disable=unused-argument
epson.barcode(data, bctype, 48, 2, '', '')
epson.set(align='left')
else:
epson.text('%s\n' % line)
epson.text('{0}\n'.format(line))
except KeyboardInterrupt:
epson.cut()
@@ -143,7 +143,7 @@ def _test_barcodes():
):
# TODO: Fix the library to restore old alignment somehow
epson.set(align='center')
epson.text('\n%s\n' % name)
epson.text('\n{0}\n'.format(name))
epson.barcode(data, name, 64, 2, '', '')