summaryrefslogtreecommitdiffstats
path: root/iredis/completers.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-25 20:03:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-25 20:04:46 +0000
commit668977aa6a04dbdfb1c4856dbf8577800505873e (patch)
tree79658cc59958112ece04da15d09433c7d779eff2 /iredis/completers.py
parentReleasing debian version 1.10.0-1. (diff)
downloadiredis-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/completers.py')
-rw-r--r--iredis/completers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/iredis/completers.py b/iredis/completers.py
index afdc7ef..f5d922e 100644
--- a/iredis/completers.py
+++ b/iredis/completers.py
@@ -94,8 +94,8 @@ class TimestampCompleter(Completer):
return
current = int(text)
now = pendulum.now()
- for unit, minium in self.when_lower_than.items():
- if current <= minium:
+ for unit, minimum in self.when_lower_than.items():
+ if current <= minimum:
dt = now.subtract(**{f"{unit}s": current})
meta = f"{text} {unit}{'s' if current > 1 else ''} ago ({dt.format('YYYY-MM-DD HH:mm:ss')})"
yield Completion(
@@ -205,7 +205,7 @@ class IRedisCompleter(Completer):
for _token_in_command in tokens_in_command:
# prompt_toolkit didn't support multi tokens
# like DEL key1 key2 key3
- # so we have to split them manualy
+ # so we have to split them manually
for single_token in strip_quote_args(_token_in_command):
_completer.touch(single_token)
@@ -310,7 +310,7 @@ class IRedisCompleter(Completer):
"member": member_completer,
"members": member_completer,
# zmember
- # TODO sperate sorted set and set
+ # TODO separate sorted set and set
# hash fields
"field": field_completer,
"fields": field_completer,