Revert "monkey patch stdlib before importing other modules"
The projects that depend on Neutron do not play nicely with this.
This reverts commit 24b11ded7f
.
Change-Id: Ic7afd7de9db97cc3a085bc842a2d990519cf42f6
This commit is contained in:
parent
5e69e9a18c
commit
c229b58cf2
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user