diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-01-25 20:03:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-01-25 20:04:46 +0000 |
commit | 668977aa6a04dbdfb1c4856dbf8577800505873e (patch) | |
tree | 79658cc59958112ece04da15d09433c7d779eff2 /iredis/commands.py | |
parent | Releasing debian version 1.10.0-1. (diff) | |
download | iredis-668977aa6a04dbdfb1c4856dbf8577800505873e.tar.xz iredis-668977aa6a04dbdfb1c4856dbf8577800505873e.zip |
Merging upstream version 1.11.0:
- compatible with mistune 2.0 (Closes: #1003572).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/commands.py')
-rw-r--r-- | iredis/commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iredis/commands.py b/iredis/commands.py index dcd457f..9f10d53 100644 --- a/iredis/commands.py +++ b/iredis/commands.py @@ -20,7 +20,7 @@ def _load_command_summary(): def _load_command(): """ - load command informations from file. + load command information from file. :returns: - original_commans: dict, command name : Command - command_group: dict, group_name: command_names @@ -115,7 +115,7 @@ def split_command_args(command): command = command.strip() for command_name in all_commands: - # for command that is paritaly inputed, like `command in`, we should + # for command that is paritaly input, like `command in`, we should # match with `command info`, otherwise, `command in` will result in # `command` with `args` is ('in') which is an invalid case. normalized_input_command = " ".join(command.split()).upper() @@ -125,7 +125,7 @@ def split_command_args(command): and command_name != normalized_input_command ): raise AmbiguousCommand("command is not finished") - # allow multiplt space in user inputed command + # allow multiple space in user input command command_allow_multi_spaces = "[ ]+".join(command_name.split()) matcher = re.match(fr"({command_allow_multi_spaces})( |$)", command.upper()) if matcher: |