Simplify _unicode
This commit is contained in:
parent
122c870312
commit
a418f64b15
|
@ -2724,8 +2724,6 @@ def md5(text):
|
|||
def _unicode(text):
|
||||
if isinstance(text, bytes):
|
||||
return str(text, "utf-8")
|
||||
elif isinstance(text, str):
|
||||
return text
|
||||
else:
|
||||
return str(text)
|
||||
|
||||
|
|
Loading…
Reference in a new issue