__init__.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:networking-dpm 作者: openstack 项目源码 文件源码
def monkey_patch():
    """Greening the world (eventlet)

    The approach is to monkeypatch the Standard Library. For more details
    see http://eventlet.net/doc/patching.html
    """
    if os.name == 'nt':
        # eventlet monkey patching the os and thread modules causes
        # subprocess.Popen to fail on Windows when using pipes due
        # to missing non-blocking IO support.
        #
        # bug report on eventlet:
        # https://bitbucket.org/eventlet/eventlet/issue/132/
        #       eventletmonkey_patch-breaks
        eventlet.monkey_patch(os=False, thread=False)
    else:
        eventlet.monkey_patch()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号