Kaydet (Commit) a248a549 authored tarafından Batuhan Osman TASKAYA's avatar Batuhan Osman TASKAYA

bpo35476: clear error in _imp_create_dynamic_impl

üst b607d992
......@@ -2249,6 +2249,9 @@ _imp_create_dynamic_impl(PyObject *module, PyObject *spec, PyObject *file)
mod = _PyImport_FindExtensionObject(name, path);
if (mod != NULL || PyErr_Occurred()) {
if (PyErr_Occurred()) {
PyErr_Clear();
}
Py_DECREF(name);
Py_DECREF(path);
Py_XINCREF(mod);
......
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