Skip to content

Commit cac6d40

Browse files
improve err msg
1 parent 3568f2a commit cac6d40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/selector_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ def _read_ready__on_eof(self):
10501050

10511051
def write(self, data):
10521052
if not isinstance(data, (bytes, bytearray, memoryview)):
1053-
raise TypeError(f'data argument must be a bytes-like object, '
1053+
raise TypeError(f'data argument must be a bytes, bytearray, or memoryview '
10541054
f'not {type(data).__name__!r}')
10551055
if self._eof:
10561056
raise RuntimeError('Cannot call write() after write_eof()')

0 commit comments

Comments
 (0)