Skip to content

Commit

Permalink
Call repr instead of str to format bytes (#7525)
Browse files Browse the repository at this point in the history
We've got an internal plugin that whines about such things so...
  • Loading branch information
msullivan committed Sep 18, 2019
1 parent 475148f commit 61cdc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/fastparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1535,4 +1535,4 @@ def bytes_to_human_readable_repr(b: bytes) -> str:
>>> print(repr(s))
'foo\\n\\x00'
"""
return str(b)[2:-1]
return repr(b)[2:-1]

0 comments on commit 61cdc95

Please sign in to comment.