mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
add version check for Python 3.4-
This commit is contained in:
parent
ea2d6474bf
commit
5670e61a31
@ -1,7 +1,13 @@
|
|||||||
|
from __future__ import print_function # this is here for the version check to work on Python 2.
|
||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
if sys.version_info < (3, 5):
|
||||||
|
print("#" * 49, file=sys.stderr)
|
||||||
|
print("# mitmproxy only supports Python 3.5 and above! #", file=sys.stderr)
|
||||||
|
print("#" * 49, file=sys.stderr)
|
||||||
|
|
||||||
from mitmproxy.tools import cmdline
|
from mitmproxy.tools import cmdline
|
||||||
from mitmproxy import exceptions
|
from mitmproxy import exceptions
|
||||||
from mitmproxy.proxy import config
|
from mitmproxy.proxy import config
|
||||||
|
Loading…
Reference in New Issue
Block a user