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.

classification
Title: Fix a number of error message typos
Type: Stage: resolved
Components: Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Jim Fasarakis-Hilliard, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-03-25 17:35 by Jim Fasarakis-Hilliard, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 818 merged Jim Fasarakis-Hilliard, 2017-03-25 20:37
Messages (3)
msg290491 - (view) Author: Jim Fasarakis-Hilliard (Jim Fasarakis-Hilliard) * Date: 2017-03-25 17:35
Specifically, the list I've currently found in .py files:

- _pyio.py:

    ValueError("flush of closed file")
    ValueError("flush of closed file")

"of" -> "on" for both.

- configparser.py:

    ValueError("Required argument `source' not given.")
    ValueError("Cannot specify both `filename' and `source'. "

fix ` on the quotes on argument names.

- windows_utils.py

    ValueError("I/O operatioon on closed pipe")

"operatioon" -> "operation"

- proactor_events.py, asynchat.py:

    TypeError('data argument must be byte-ish (%r)',
    raise TypeError('data argument must be byte-ish (%r)',

AFAIK, "byte-ish" isn't used elsewhere, the author probably mean to go for "bytes-like object".

- _header_value_parser.py:

    errors.HeaderParseError("expected atom at a start of "

"at a start of " -> "at the start of "

- http/cookiejar.py:

    raise ValueError("filename must be string-like")
    
I think "must be a str" was intended.
msg290493 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-25 17:44
Do you want to create a pull request?
msg290494 - (view) Author: Jim Fasarakis-Hilliard (Jim Fasarakis-Hilliard) * Date: 2017-03-25 17:47
Sure, Serhiy, I'll make a PR in a bit.
History
Date User Action Args
2022-04-11 14:58:44adminsetgithub: 74090
2017-03-28 15:01:27Jim Fasarakis-Hilliardsetstatus: open -> closed
resolution: fixed
stage: resolved
2017-03-25 20:37:36Jim Fasarakis-Hilliardsetpull_requests: + pull_request724
2017-03-25 17:47:49Jim Fasarakis-Hilliardsetmessages: + msg290494
2017-03-25 17:44:48serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg290493
2017-03-25 17:35:41Jim Fasarakis-Hilliardcreate