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)
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user