Incorrect error message in the module asyncio.selector_events for the methods: _SelectorSocketTransport.write _SelectorSslTransport.write _SelectorDatagramTransport.sendto. The previous error was raising a Tuple: TypeError: ('data argument must be byte-ish (%r)', <class 'str'>) Patched: TypeError: data argument must be a bytes-like object, not 'str'
Remember also to apply to asyncio's own GitHub repo. --Guido (mobile) On Jan 15, 2016 6:03 AM, "Ezio Melotti" <report@bugs.python.org> wrote: > > Ezio Melotti added the comment: > > LGTM unless you think we should also add a test that checks that the name > of the incorrect type is included in the error message. > > ---------- > nosy: +ezio.melotti > stage: -> commit review > type: -> behavior > versions: +Python 3.5, Python 3.6 -Python 3.4 > > _______________________________________ > Python tracker <report@bugs.python.org> > <http://bugs.python.org/issue26125> > _______________________________________ >