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

Fix black linter checks - Remove u"" strings

This commit is contained in:
belono
2022-11-24 20:23:21 +01:00
parent 49ab3f35a8
commit 69e9dca761
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: