Get rid of monkey patching work around for Python 2 in main.py
Change-Id: I83a7e9473a1eeb0872279317d75bda8737911953 Closes-Bug: #1410709
This commit is contained in:
parent
8565f4781d
commit
2e459037f2
@ -13,9 +13,9 @@
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import eventlet
|
||||
eventlet.monkey_patch(thread=False)
|
||||
import ironic_discoverd.test # noqa - pulls in monkey patching
|
||||
|
||||
import eventlet
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
|
@ -11,8 +11,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import sys
|
||||
|
||||
import eventlet
|
||||
eventlet.monkey_patch(thread=False)
|
||||
eventlet.monkey_patch(thread=(sys.version_info < (3, 3)))
|
||||
|
||||
import argparse
|
||||
import functools
|
||||
|
@ -12,4 +12,4 @@
|
||||
# limitations under the License.
|
||||
|
||||
import eventlet
|
||||
eventlet.monkey_patch(thread=False)
|
||||
eventlet.monkey_patch(thread=False) # thread=True breaks func tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user