From: peusterm Date: Tue, 19 Mar 2019 13:05:18 +0000 (+0100) Subject: Fix: Do monkey.patch_all() only once. X-Git-Tag: v6.0.0~16 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F31%2F7331%2F1;p=osm%2Fvim-emu.git Fix: Do monkey.patch_all() only once. Change-Id: I6d32a318e73adc0679303cdada5da79acfb7b744 Signed-off-by: peusterm --- diff --git a/src/emuvim/api/openstack/openstack_dummies/base_openstack_dummy.py b/src/emuvim/api/openstack/openstack_dummies/base_openstack_dummy.py index 57097d9..45e7cb5 100755 --- a/src/emuvim/api/openstack/openstack_dummies/base_openstack_dummy.py +++ b/src/emuvim/api/openstack/openstack_dummies/base_openstack_dummy.py @@ -28,10 +28,8 @@ import logging import threading from flask import Flask, request from flask_restful import Api, Resource -from gevent import monkey from gevent.pywsgi import WSGIServer -monkey.patch_all() LOG = logging.getLogger("api.openstack.base") diff --git a/src/emuvim/api/rest/rest_api_endpoint.py b/src/emuvim/api/rest/rest_api_endpoint.py index a9a863d..cefda5f 100755 --- a/src/emuvim/api/rest/rest_api_endpoint.py +++ b/src/emuvim/api/rest/rest_api_endpoint.py @@ -28,7 +28,6 @@ import logging import threading from flask import Flask from flask_restful import Api -from gevent import monkey from gevent.pywsgi import WSGIServer # need to import total module to set its global variable dcs @@ -45,7 +44,6 @@ from monitor import MonitorInterfaceAction, MonitorFlowAction, MonitorLinkAction import pkg_resources from os import path -monkey.patch_all() logging.basicConfig()