This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jim Fasarakis-Hilliard
Recipients Jim Fasarakis-Hilliard
Date 2017-03-25.21:10:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490476220.4.0.605506915687.issue29905@psf.upfronthosting.co.za>
In-reply-to
Content
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__)
History
Date User Action Args
2017-03-25 21:10:20Jim Fasarakis-Hilliardsetrecipients: + Jim Fasarakis-Hilliard
2017-03-25 21:10:20Jim Fasarakis-Hilliardsetmessageid: <1490476220.4.0.605506915687.issue29905@psf.upfronthosting.co.za>
2017-03-25 21:10:20Jim Fasarakis-Hilliardlinkissue29905 messages
2017-03-25 21:10:20Jim Fasarakis-Hilliardcreate