Skip to content

Commit

Permalink
fix safe_str docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Jun 25, 2019
1 parent 4b104ba commit d2f74d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/compat.py
Expand Up @@ -377,7 +377,7 @@ def safe_str(v):
else:

def safe_str(v):
"""returns v as string, converting to ascii if necessary"""
"""returns v as string, converting to utf-8 if necessary"""
try:
return str(v)
except UnicodeError:
Expand Down

0 comments on commit d2f74d3

Please sign in to comment.