Skip to content

Commit 61cdc95

Browse files
authored
Call repr instead of str to format bytes (#7525)
We've got an internal plugin that whines about such things so...
1 parent 475148f commit 61cdc95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/fastparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,4 +1535,4 @@ def bytes_to_human_readable_repr(b: bytes) -> str:
15351535
>>> print(repr(s))
15361536
'foo\\n\\x00'
15371537
"""
1538-
return str(b)[2:-1]
1538+
return repr(b)[2:-1]

0 commit comments

Comments
 (0)