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)
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