mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-16 09:57:35 +08:00
change: remove support for Python 2.7
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user