Skip to content

Commit

Permalink
fix a SyntaxWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
deronnax committed Dec 19, 2023
1 parent 704af17 commit eac057d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iredis/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ def split_command_args(command):

command = command.strip()
for command_name in all_commands:
# for command that is paritaly input, like `command in`, we should
# for command that is partially 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()
if (
re.search("\s", command)
re.search(r"\s", command)
and command_name.startswith(normalized_input_command)
and command_name != normalized_input_command
):
Expand Down

0 comments on commit eac057d

Please sign in to comment.