[Python-Dev] [Python-checkins] cpython (3.5): remove extra PyErr_Format arguments (closes #28454) (original) (raw)
Jeremy Kloth jeremy.kloth at gmail.com
Mon Oct 17 05:43:00 EDT 2016
- Previous message (by thread): [Python-Dev] [Python-ideas] Show more info when `python -vV`
- Next message (by thread): [Python-Dev] [Python-checkins] cpython (3.5): remove extra PyErr_Format arguments (closes #28454)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Oct 16, 2016 at 4:42 PM, benjamin.peterson <python-checkins at python.org> wrote:
--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -3009,7 +3009,7 @@ "'%.400s' decoder returned '%.400s' instead of 'str'; " "use codecs.decode() to decode to arbitrary types", encoding, - PyTYPE(unicode)->tpname, PyTYPE(unicode)->tpname); + PyTYPE(unicode)->tpname); PyDECREF(unicode); goto onError; }
Um, isn't that now an error? There are 2 format sequences, but only 1 argument.
-- Jeremy Kloth
- Previous message (by thread): [Python-Dev] [Python-ideas] Show more info when `python -vV`
- Next message (by thread): [Python-Dev] [Python-checkins] cpython (3.5): remove extra PyErr_Format arguments (closes #28454)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]