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