Commit 5e380c7b authored by Stefan Behnel's avatar Stefan Behnel

fix compile error with MSVC

parent c8a2d308
...@@ -845,13 +845,10 @@ static int __Pyx_patch_abc(void) { ...@@ -845,13 +845,10 @@ static int __Pyx_patch_abc(void) {
module = PyImport_ImportModule((PY_VERSION_HEX >= 0x03030000) ? "collections.abc" : "collections"); module = PyImport_ImportModule((PY_VERSION_HEX >= 0x03030000) ? "collections.abc" : "collections");
if (!module) { if (!module) {
PyErr_WriteUnraisable(NULL); PyErr_WriteUnraisable(NULL);
if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch " if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning,
#if PY_VERSION_HEX >= 0x03030000 ((PY_VERSION_HEX >= 0x03030000) ?
"collections.abc.Generator" "Cython module failed to patch collections.abc.Generator" :
#else "Cython module failed to patch collections.Generator"), 1) < 0)) {
"collections.Generator"
#endif
, 1) < 0)) {
return -1; return -1;
} }
} else { } 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