fix safe_str docstring

This commit is contained in:
Thomas Grainger 2019-06-25 12:54:34 +01:00
parent 4b104ba222
commit d2f74d342e
No known key found for this signature in database
GPG Key ID: E452A1247BAC1A88
1 changed files with 1 additions and 1 deletions

View File

@ -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: