forked from p34709852/monkey
Cosmetic changes
This commit is contained in:
parent
b42ff98f9f
commit
fa8975706e
|
@ -32,5 +32,6 @@ def is_windows_os():
|
||||||
|
|
||||||
|
|
||||||
def utf_to_ascii(string):
|
def utf_to_ascii(string):
|
||||||
|
# Converts utf string to ascii. Safe to use even if string is already ascii.
|
||||||
udata = string.decode("utf-8")
|
udata = string.decode("utf-8")
|
||||||
return udata.encode("ascii", "ignore")
|
return udata.encode("ascii", "ignore")
|
||||||
|
|
Loading…
Reference in New Issue