Merge pull request #5489 from graingert/fix-safe-str-doc

fix safe_str docstring
This commit is contained in:
Bruno Oliveira 2019-06-25 17:30:54 -03:00 committed by GitHub
commit 554bff8cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: