Skip to content

Commit 8c4fc80

Browse files
authored
Fix some typos. (#1496)
1 parent ba30d02 commit 8c4fc80

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

CHANGES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@
400400
* 2.10.2
401401
* Added support for Hiredis's new bytearray support. Thanks
402402
https://github.com/tzickel
403-
* POSSIBLE BACKWARDS INCOMPATBLE CHANGE: Fixed a possible race condition
403+
* POSSIBLE BACKWARDS INCOMPATIBLE CHANGE: Fixed a possible race condition
404404
when multiple threads share the same Lock instance with a timeout. Lock
405405
tokens are now stored in thread local storage by default. If you have
406406
code that acquires a lock in one thread and passes that lock instance to
@@ -455,12 +455,12 @@
455455
* Fixed Sentinel state parsing on Python 3.
456456
* Added support for SENTINEL MONITOR, SENTINEL REMOVE, and SENTINEL SET
457457
commands. Thanks Greg Murphy.
458-
* INFO ouput that doesn't follow the "key:value" format will now be
458+
* INFO output that doesn't follow the "key:value" format will now be
459459
appended to a key named "__raw__" in the INFO dictionary. Thanks Pedro
460460
Larroy.
461461
* The "vagrant" directory contains a complete vagrant environment for
462462
redis-py developers. The environment runs a Redis master, a Redis slave,
463-
and 3 Sentinels. Future iterations of the test sutie will incorporate
463+
and 3 Sentinels. Future iterations of the test suite will incorporate
464464
more integration style tests, ensuring things like failover happen
465465
correctly.
466466
* It's now possible to create connection pool instances from a URL.

redis/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def parse_georadius_generic(response, **options):
469469
'withhash': int
470470
}
471471

472-
# zip all output results with each casting functino to get
472+
# zip all output results with each casting function to get
473473
# the properly native Python value.
474474
f = [lambda x: x]
475475
f += [cast[o] for o in ['withdist', 'withhash', 'withcoord'] if options[o]]
@@ -541,7 +541,7 @@ def parse_client_info(value):
541541
key, value = info.split("=")
542542
client_info[key] = value
543543

544-
# Those fields are definded as int in networking.c
544+
# Those fields are defined as int in networking.c
545545
for int_key in {"id", "age", "idle", "db", "sub", "psub",
546546
"multi", "qbuf", "qbuf-free", "obl",
547547
"argv-mem", "oll", "omem", "tot-mem"}:
@@ -1592,7 +1592,7 @@ def append(self, key, value):
15921592
def bitcount(self, key, start=None, end=None):
15931593
"""
15941594
Returns the count of set bits in the value of ``key``. Optional
1595-
``start`` and ``end`` paramaters indicate which bytes to consider
1595+
``start`` and ``end`` parameters indicate which bytes to consider
15961596
"""
15971597
params = [key]
15981598
if start is not None and end is not None:
@@ -1620,7 +1620,7 @@ def bitop(self, operation, dest, *keys):
16201620
def bitpos(self, key, bit, start=None, end=None):
16211621
"""
16221622
Return the position of the first bit set to 1 or 0 in a string.
1623-
``start`` and ``end`` difines search range. The range is interpreted
1623+
``start`` and ``end`` defines search range. The range is interpreted
16241624
as a range of bytes and not a range of bits, so start=0 and end=2
16251625
means to look at the first three bytes.
16261626
"""
@@ -2576,7 +2576,7 @@ def xack(self, name, groupname, *ids):
25762576
Acknowledges the successful processing of one or more messages.
25772577
name: name of the stream.
25782578
groupname: name of the consumer group.
2579-
*ids: message ids to acknowlege.
2579+
*ids: message ids to acknowledge.
25802580
"""
25812581
return self.execute_command('XACK', name, groupname, *ids)
25822582

@@ -4510,7 +4510,7 @@ def __call__(self, keys=[], args=[], client=None):
45104510
try:
45114511
return client.evalsha(self.sha, len(keys), *args)
45124512
except NoScriptError:
4513-
# Maybe the client is pointed to a differnet server than the client
4513+
# Maybe the client is pointed to a different server than the client
45144514
# that created this instance?
45154515
# Overwrite the sha just in case there was a discrepancy.
45164516
self.sha = client.script_load(self.script)

redis/sentinel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def master_for(self, service_name, redis_class=Redis,
245245
Returns a redis client instance for the ``service_name`` master.
246246
247247
A :py:class:`~redis.sentinel.SentinelConnectionPool` class is
248-
used to retrive the master's address before establishing a new
248+
used to retrieve the master's address before establishing a new
249249
connection.
250250
251251
NOTE: If the master's address has changed, any cached connections to
@@ -274,7 +274,7 @@ def slave_for(self, service_name, redis_class=Redis,
274274
"""
275275
Returns redis client instance for the ``service_name`` slave(s).
276276
277-
A SentinelConnectionPool class is used to retrive the slave's
277+
A SentinelConnectionPool class is used to retrieve the slave's
278278
address before establishing a new connection.
279279
280280
By default clients will be a :py:class:`~redis.Redis` instance.

0 commit comments

Comments
 (0)