change: remove support for Python 2.7

This commit is contained in:
debugtalk
2020-03-07 10:48:21 +08:00
parent f22e8f9a70
commit d833596b24
3 changed files with 2 additions and 19 deletions

View File

@@ -6,11 +6,10 @@ import sentry_sdk
from httprunner import __description__, __version__, exceptions
from httprunner.api import HttpRunner
from httprunner.compat import is_py2
from httprunner.loader import load_cases
from httprunner.logger import color_print, log_error
from httprunner.report import gen_html_report
from httprunner.utils import (create_scaffold, get_python2_retire_msg,
from httprunner.utils import (create_scaffold,
prettify_json_file, init_sentry_sdk)
init_sentry_sdk()
@@ -19,9 +18,6 @@ init_sentry_sdk()
def main():
""" API test: parse command line options and run commands.
"""
if is_py2:
color_print(get_python2_retire_msg(), "YELLOW")
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument(
'-V', '--version', dest='version', action='store_true',