mitmproxy/libmproxy/platform/__init__.py

16 lines
364 B
Python
Raw Normal View History

import sys
resolver = None
if sys.platform == "linux2":
from . import linux
resolver = linux.Resolver
elif sys.platform == "darwin":
from . import osx
resolver = osx.Resolver
2014-07-01 22:08:42 +00:00
elif sys.platform == "freebsd10":
from . import osx
2014-07-01 21:37:52 +00:00
resolver = osx.Resolver
elif sys.platform == "win32":
from . import windows
2014-08-08 01:38:59 +00:00
resolver = windows.Resolver