update formatting
This commit is contained in:
parent
cfb37b6359
commit
c04ee6b80d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user