We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 495d864 commit 77c4df4Copy full SHA for 77c4df4
mypyc/codegen/emitmodule.py
@@ -993,7 +993,9 @@ def emit_module_exec_func(
993
f'PyObject *func = PyObject_GetAttrString({module_static}, "{fn.decl.name}");'
994
)
995
emitter.emit_line("if (!func) goto fail;")
996
- emitter.emit_line("if (!CPyFunc_SetCoroFlag(func)) { Py_DECREF(func); goto fail; }")
+ emitter.emit_line(
997
+ "if (!CPyFunc_SetCoroFlag(func)) { Py_DECREF(func); goto fail; }"
998
+ )
999
emitter.emit_line("Py_DECREF(func);")
1000
1001
self.generate_top_level_call(module, emitter)
0 commit comments