Skip to content

Commit 61cdc95

Browse files
authored
Call repr instead of str to format bytes (python#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy