Merge pull request #5489 from graingert/fix-safe-str-doc
fix safe_str docstring
This commit is contained in:
commit
554bff8cc1
|
@ -377,7 +377,7 @@ if _PY3:
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def safe_str(v):
|
def safe_str(v):
|
||||||
"""returns v as string, converting to ascii if necessary"""
|
"""returns v as string, converting to utf-8 if necessary"""
|
||||||
try:
|
try:
|
||||||
return str(v)
|
return str(v)
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
|
|
Loading…
Reference in New Issue