We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b7128 commit 5154d41Copy full SHA for 5154d41
Lib/pdb.py
@@ -2716,7 +2716,7 @@ def _read_reply(self):
2716
try:
2717
payload = json.loads(msg)
2718
except json.JSONDecodeError:
2719
- self.error(f"Disconnecting: client sent invalid JSON {msg}")
+ self.error(f"Disconnecting: client sent invalid JSON {msg!r}")
2720
raise EOFError
2721
2722
match payload:
@@ -3023,7 +3023,7 @@ def cmdloop(self):
3023
payload = json.loads(payload_bytes)
3024
3025
print(
3026
- f"*** Invalid JSON from remote: {payload_bytes}",
+ f"*** Invalid JSON from remote: {payload_bytes!r}",
3027
flush=True,
3028
)
3029
continue
0 commit comments