mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Merge 1.42 from PyXML: Flag errors resulting from argument conversion problems.
Fixes problem with not detecting UTF-8 errors.
This commit is contained in:
parent
439eaa9f74
commit
1d7c55faee
1 changed files with 1 additions and 2 deletions
|
@ -475,8 +475,7 @@ my_##NAME##Handler PARAMS {\
|
|||
if (self->handlers[NAME] \
|
||||
&& self->handlers[NAME] != Py_None) { \
|
||||
args = Py_BuildValue PARAM_FORMAT ;\
|
||||
if (!args) \
|
||||
return RETURN; \
|
||||
if (!args) { flag_error(self); return RETURN;} \
|
||||
self->in_callback = 1; \
|
||||
rv = call_with_frame(getcode(NAME,#NAME,__LINE__), \
|
||||
self->handlers[NAME], args); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue