update formatting

This commit is contained in:
Patrick Kanzler 2023-05-09 01:14:50 +02:00
parent cfb37b6359
commit c04ee6b80d

View File

@ -253,8 +253,8 @@ class MagicEncode(object):
self.write_with_encoding(self.encoding, text) self.write_with_encoding(self.encoding, text)
return return
if re.findall(r'[\u4e00-\u9fa5]', text): if re.findall(r"[\u4e00-\u9fa5]", text):
self.driver._raw(text.encode('GB18030')) self.driver._raw(text.encode("GB18030"))
return return
# See how far we can go into the text with the current encoding # See how far we can go into the text with the current encoding