Skip to content

Commit e993e2c

Browse files
timgates42dvora-h
authored andcommitted
docs: Fix a few typos (redis#2274)
* docs: Fix a few typos There are small typos in: - redis/cluster.py - redis/commands/core.py - redis/ocsp.py - tests/test_cluster.py Fixes: - Should read `validity` rather than `valididy`. - Should read `reinitialize` rather than `reinitilize`. - Should read `farthest` rather than `farest`. - Should read `commands` rather than `comamnds`. * Update core.py
1 parent 13941b8 commit e993e2c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

redis/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ def _send_cluster_commands(
20252025
)
20262026
if attempt and allow_redirections:
20272027
# RETRY MAGIC HAPPENS HERE!
2028-
# send these remaing comamnds one at a time using `execute_command`
2028+
# send these remaing commands one at a time using `execute_command`
20292029
# in the main client. This keeps our retry logic
20302030
# in one place mostly,
20312031
# and allows us to be more confident in correctness of behavior.

redis/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5459,7 +5459,7 @@ def geosearch(
54595459
`m` for meters (the default value), `km` for kilometers,
54605460
`mi` for miles and `ft` for feet.
54615461
``sort`` indicates to return the places in a sorted way,
5462-
ASC for nearest to farest and DESC for farest to nearest.
5462+
ASC for nearest to furthest and DESC for furthest to nearest.
54635463
``count`` limit the results to the first count matching items.
54645464
``any`` is set to True, the command will return as soon as
54655465
enough matches are found. Can't be provided without ``count``

redis/ocsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def is_valid(self):
292292
This first retrieves for validate the certificate, issuer_url,
293293
and ocsp_server for certificate validate. Then retrieves the
294294
issuer certificate from the issuer_url, and finally checks
295-
the valididy of OCSP revocation status.
295+
the validity of OCSP revocation status.
296296
"""
297297

298298
# validate the certificate

tests/test_cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def __init__(self, val=0):
672672
with patch.object(Redis, "parse_response") as parse_response:
673673

674674
def moved_redirect_effect(connection, *args, **options):
675-
# raise a timeout for 5 times so we'll need to reinitilize the topology
675+
# raise a timeout for 5 times so we'll need to reinitialize the topology
676676
if count.val == 4:
677677
parse_response.side_effect = real_func
678678
count.val += 1

0 commit comments

Comments
 (0)