mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
event: Fix compilation with Python 2.7
This commit is contained in:
parent
28615c6a9e
commit
8c8a73a1a7
@ -585,10 +585,12 @@ do_python_task() {
|
|||||||
return DS_done;
|
return DS_done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if PY_VERSION_HEX >= 0x03050000
|
||||||
} else if (result == Py_None && PyCoro_CheckExact(_generator)) {
|
} else if (result == Py_None && PyCoro_CheckExact(_generator)) {
|
||||||
// Bare yield from a coroutine means to try again next frame.
|
// Bare yield from a coroutine means to try again next frame.
|
||||||
Py_DECREF(result);
|
Py_DECREF(result);
|
||||||
return DS_cont;
|
return DS_cont;
|
||||||
|
#endif
|
||||||
|
|
||||||
} else if (DtoolInstance_Check(result)) {
|
} else if (DtoolInstance_Check(result)) {
|
||||||
// We are waiting for an AsyncFuture (eg. other task) to finish.
|
// We are waiting for an AsyncFuture (eg. other task) to finish.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user