[New-bugs-announce] [issue29905] TypeErrors not formatting values correctly
Jim Fasarakis-Hilliard
report at bugs.python.org
Sat Mar 25 17:10:20 EDT 2017
New submission from Jim Fasarakis-Hilliard:
Specifically, in both Lib/async/proactor_events.py and asynchat.py there's a comma where a % should be thereby not formatting the value correctly:
TypeError('data argument must be byte-ish (%r)', type(data))
TypeError('data argument must be byte-ish (%r)', type(data))
proposed fix is to change them to:
TypeError('data argument must be a bytes-like object, not %r' % type(data).__name__)
TypeError('data argument must be a bytes-like object, not %r' % type(data).__name__)
----------
components: Library (Lib)
messages: 290499
nosy: Jim Fasarakis-Hilliard
priority: normal
severity: normal
status: open
title: TypeErrors not formatting values correctly
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29905>
_______________________________________
More information about the New-bugs-announce
mailing list