mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-12-05 03:56:42 +00:00
8 lines
215 B
Python
8 lines
215 B
Python
import os, sys, mock
|
|
if os.name == "nt":
|
|
m = mock.Mock()
|
|
m.__version__ = "1.1.1"
|
|
m.Widget = mock.Mock
|
|
m.WidgetWrap = mock.Mock
|
|
sys.modules['urwid'] = m
|
|
sys.modules['urwid.util'] = mock.Mock() |