From c229b58cf2eb8c20ffbcf8cfbfa1daf2f13e6433 Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Wed, 11 Feb 2015 17:25:56 -0800 Subject: [PATCH] Revert "monkey patch stdlib before importing other modules" The projects that depend on Neutron do not play nicely with this. This reverts commit 24b11ded7f6ff12f9484aecdb8d30498bf1b9025. Change-Id: Ic7afd7de9db97cc3a085bc842a2d990519cf42f6 --- neutron/__init__.py | 5 ----- run_tests.sh | 4 ++-- tox.ini | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/neutron/__init__.py b/neutron/__init__.py index 20549b760..710b18c46 100644 --- a/neutron/__init__.py +++ b/neutron/__init__.py @@ -14,11 +14,6 @@ # under the License. import gettext -import os - -if not os.environ.get('NO_EVENTLET'): - import eventlet - eventlet.monkey_patch() gettext.install('neutron', unicode=1) diff --git a/run_tests.sh b/run_tests.sh index b6224f07c..6fe001f53 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -179,7 +179,7 @@ function warn_on_flake8_without_venv { function run_pep8 { echo "Running flake8 ..." warn_on_flake8_without_venv - NO_EVENTLET=1 ${wrapper} flake8 + ${wrapper} flake8 } function run_pep8_changed { @@ -192,7 +192,7 @@ function run_pep8_changed { local files=$(git diff --name-only $target | tr '\n' ' ') echo "Running flake8 on ${files}" warn_on_flake8_without_venv - diff -u --from-file /dev/null ${files} | NO_EVENTLET=1 ${wrapper} flake8 --diff + diff -u --from-file /dev/null ${files} | ${wrapper} flake8 --diff } diff --git a/tox.ini b/tox.ini index 9d88fd494..3d1f62f44 100644 --- a/tox.ini +++ b/tox.ini @@ -49,7 +49,6 @@ sitepackages = True downloadcache = ~/cache/pip [testenv:pep8] -setenv = NO_EVENTLET=1 commands = # If it is easier to add a check via a shell script, consider adding it in this file sh ./tools/misc-sanity-checks.sh -- 2.45.2