locust 2.40.6.dev4__py3-none-any.whl → 2.40.6.dev8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/argument_parser.py +1 -4
- locust/webui/dist/assets/{index-BjqxSg7R.js → index-aozIzkOV.js} +48 -48
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- {locust-2.40.6.dev4.dist-info → locust-2.40.6.dev8.dist-info}/METADATA +1 -1
- {locust-2.40.6.dev4.dist-info → locust-2.40.6.dev8.dist-info}/RECORD +10 -10
- {locust-2.40.6.dev4.dist-info → locust-2.40.6.dev8.dist-info}/WHEEL +0 -0
- {locust-2.40.6.dev4.dist-info → locust-2.40.6.dev8.dist-info}/entry_points.txt +0 -0
- {locust-2.40.6.dev4.dist-info → locust-2.40.6.dev8.dist-info}/licenses/LICENSE +0 -0
locust/_version.py
CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
28
28
|
commit_id: COMMIT_ID
|
29
29
|
__commit_id__: COMMIT_ID
|
30
30
|
|
31
|
-
__version__ = version = '2.40.6.
|
32
|
-
__version_tuple__ = version_tuple = (2, 40, 6, '
|
31
|
+
__version__ = version = '2.40.6.dev8'
|
32
|
+
__version_tuple__ = version_tuple = (2, 40, 6, 'dev8')
|
33
33
|
|
34
34
|
__commit_id__ = commit_id = None
|
locust/argument_parser.py
CHANGED
@@ -62,12 +62,9 @@ class LocustArgumentParser(configargparse.ArgumentParser):
|
|
62
62
|
"""
|
63
63
|
|
64
64
|
def error(self, message):
|
65
|
-
# Extract the unknown option from the error message
|
66
65
|
if "unrecognized arguments:" in message:
|
67
66
|
bad_arg = message.split("unrecognized arguments:")[1].strip().split()[0]
|
68
|
-
|
69
|
-
options = [action.option_strings for action in self._actions]
|
70
|
-
options = [opt for sublist in options for opt in sublist] # flatten
|
67
|
+
options = [opt for action in self._actions for opt in action.option_strings]
|
71
68
|
suggestion = difflib.get_close_matches(bad_arg, options, n=1)
|
72
69
|
if suggestion:
|
73
70
|
message += f"\nDid you mean '{suggestion[0]}'?"
|