Incorrectly formatted error message in asyncio.proactor_events.sendto() #160596
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
It should use % instead of ,, and the wording could also be adjusted.
cpython/Lib/asyncio/proactor_events.py
Lines 492 to 493 in b577a54
| raise TypeError('data argument must be bytes-like object (%r)', | |
| type(data)) |
I'm working on a PR to fix this.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
- StatusShow more project fieldsDone
Activity
gh-160596: Fix error message in asyncio.proactor_events.sendto() (#16…
[3.14] gh-160596: Fix error message in asyncio.proactor_events.sendto…
[3.15] gh-160596: Fix error message in asyncio.proactor_events.sendto…