Kaydet (Commit) 3cb8e54d authored tarafından Guido van Rossum's avatar Guido van Rossum

Reset errno to zero after calling PyErr_Warn(). It can potentially do

a lot of work, including I/O (e.g. to import warnings.py), which might
affect errno.
üst 643d59cb
......@@ -1162,6 +1162,7 @@ parsenumber(struct compiling *co, char *s)
"will return positive values "
"in Python 2.4 and up") < 0)
return NULL;
errno = 0; /* Might be changed by PyErr_Warn() */
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment