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

remove some six usage

This commit is contained in:
Alexandre Detiste
2023-12-10 01:56:31 +01:00
parent bea4f29d28
commit 35565d5564
5 changed files with 8 additions and 17 deletions

View File

@@ -292,7 +292,7 @@ class MagicEncode(object):
def write_with_encoding(self, encoding, text):
"""Write the text and inject necessary codepage switches."""
if text is not None and type(text) is not six.text_type:
if text is not None and type(text) is not str:
raise Error(
"The supplied text has to be unicode, but is of type {type}.".format(
type=type(text)