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

format with black

This commit is contained in:
Patrick Kanzler
2023-04-19 22:11:09 +02:00
parent cbf887ed02
commit 70d4da1364
5 changed files with 16 additions and 16 deletions

View File

@@ -1078,7 +1078,7 @@ class EscposIO(object):
for line in lines:
self.printer.set(**params)
if isinstance(text, six.text_type):
self.printer.text(u"{0}\n".format(line))
self.printer.text("{0}\n".format(line))
else:
self.printer.text("{0}\n".format(line))

View File

@@ -77,7 +77,7 @@ class Encoder(object):
assert len(encodable_chars) == 128
return encodable_chars
elif "python_encode" in codepage:
encodable_chars = [u" "] * 128
encodable_chars = [" "] * 128
for i in range(0, 128):
codepoint = i + 128
try: