add version check for Python 3.4-

This commit is contained in:
Maximilian Hils 2016-10-24 14:26:07 -07:00
parent ea2d6474bf
commit 5670e61a31

View File

@ -1,7 +1,13 @@
from __future__ import print_function # this is here for the version check to work on Python 2.
import os
import signal
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 import exceptions
from mitmproxy.proxy import config