This document is for Kombu's development version, which can be significantly different from previous releases. Get the stable docs here: 5.0.

与Python的兼容性- kombu.utils.compat

Python兼容性实用程序。

kombu.utils.compat.coro(gen)[源代码]

装修工将发电机标记为协作组。

kombu.utils.compat.detect_environment()[源代码]

检测当前环境:默认、Eventlet或GEvent。

kombu.utils.compat.entrypoints(namespace)[源代码]

返回命名空间的setupTools入口点。

kombu.utils.compat.fileno(f)[源代码]

从类似文件的对象中获取文件。

kombu.utils.compat.maybe_fileno(f)[源代码]

获取对象文件,或者 None 如果未定义,则为。

kombu.utils.compat.nested(*managers)[源代码]

嵌套上下文管理器。