From c04ee6b80d226362504f9e06ea2f9ade1df05041 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Tue, 9 May 2023 01:14:50 +0200 Subject: [PATCH] update formatting --- src/escpos/magicencode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/escpos/magicencode.py b/src/escpos/magicencode.py index 4ecdf94..bc0bb7f 100644 --- a/src/escpos/magicencode.py +++ b/src/escpos/magicencode.py @@ -253,8 +253,8 @@ class MagicEncode(object): self.write_with_encoding(self.encoding, text) return - if re.findall(r'[\u4e00-\u9fa5]', text): - self.driver._raw(text.encode('GB18030')) + if re.findall(r"[\u4e00-\u9fa5]", text): + self.driver._raw(text.encode("GB18030")) return # See how far we can go into the text with the current encoding