From 20fea88c280d4c7304554a73fa6365e73223485b Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 28 Sep 2024 14:25:03 +0900 Subject: [PATCH] Remove workaround for eventlet < 0.27.0 This code worked around a bug in eventlet[1] that has been fixed in 115103d5608cbe8f15df10e27eba1644f5364e95. The fix has been available in every eventlet release since v0.27.0. [1] https://github.com/eventlet/eventlet/issues/592 Also remove the note about old pip's behavior because recent pip does not require specific order in requirements files. Co-Authored-By: Cyril Roelandt Change-Id: I5929bc35c3ffd8ad4d3088cb957eb6a47d3905d2 --- magnum/cmd/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/magnum/cmd/__init__.py b/magnum/cmd/__init__.py index 15fc6bfa7b..277b2af39d 100644 --- a/magnum/cmd/__init__.py +++ b/magnum/cmd/__init__.py @@ -18,9 +18,3 @@ import eventlet eventlet.monkey_patch() -# Monkey patch the original current_thread to use the up-to-date _active -# global variable. See https://bugs.launchpad.net/bugs/1863021 and -# https://github.com/eventlet/eventlet/issues/592 -import __original_module_threading as orig_threading # noqa -import threading # noqa -orig_threading.current_thread.__globals__['_active'] = threading._active