
Basically this patch replaces urllib with custom module that is guaranteed not imported before patching. https://github.com/eventlet/eventlet/issues/362 More general issue here https://github.com/eventlet/eventlet/issues/368
8 lines
170 B
Python
8 lines
170 B
Python
import os
|
|
import socket
|
|
__test__ = False
|
|
_ = socket # mask unused import error
|
|
|
|
# prevent accidental imports
|
|
assert os.environ.get('eventlet_test_in_progress') == 'yes'
|