def _is_coroutine(func): if sys.version_info > (3, 5, 0): return inspect.iscoroutine(func) return False