mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
PyFile_WriteString now returns an error indicator instead of calling
PyErr_Clear(). Add checking of those errors.
This commit is contained in:
parent
78a1ed3d70
commit
7e8d26d78c
2 changed files with 32 additions and 16 deletions
|
|
@ -354,11 +354,11 @@ r_long64(p)
|
|||
#else
|
||||
if (r_long(p) != 0) {
|
||||
PyObject *f = PySys_GetObject("stderr");
|
||||
PyErr_Clear();
|
||||
if (f != NULL)
|
||||
PyFile_WriteString(
|
||||
(void) PyFile_WriteString(
|
||||
"Warning: un-marshal 64-bit int in 32-bit mode\n",
|
||||
f);
|
||||
PyErr_Clear();
|
||||
}
|
||||
#endif
|
||||
return x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue