@@ -469,7 +469,7 @@ def parse_georadius_generic(response, **options):
469
469
'withhash' : int
470
470
}
471
471
472
- # zip all output results with each casting functino to get
472
+ # zip all output results with each casting function to get
473
473
# the properly native Python value.
474
474
f = [lambda x : x ]
475
475
f += [cast [o ] for o in ['withdist' , 'withhash' , 'withcoord' ] if options [o ]]
@@ -541,7 +541,7 @@ def parse_client_info(value):
541
541
key , value = info .split ("=" )
542
542
client_info [key ] = value
543
543
544
- # Those fields are definded as int in networking.c
544
+ # Those fields are defined as int in networking.c
545
545
for int_key in {"id" , "age" , "idle" , "db" , "sub" , "psub" ,
546
546
"multi" , "qbuf" , "qbuf-free" , "obl" ,
547
547
"argv-mem" , "oll" , "omem" , "tot-mem" }:
@@ -1592,7 +1592,7 @@ def append(self, key, value):
1592
1592
def bitcount (self , key , start = None , end = None ):
1593
1593
"""
1594
1594
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
1596
1596
"""
1597
1597
params = [key ]
1598
1598
if start is not None and end is not None :
@@ -1620,7 +1620,7 @@ def bitop(self, operation, dest, *keys):
1620
1620
def bitpos (self , key , bit , start = None , end = None ):
1621
1621
"""
1622
1622
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
1624
1624
as a range of bytes and not a range of bits, so start=0 and end=2
1625
1625
means to look at the first three bytes.
1626
1626
"""
@@ -2576,7 +2576,7 @@ def xack(self, name, groupname, *ids):
2576
2576
Acknowledges the successful processing of one or more messages.
2577
2577
name: name of the stream.
2578
2578
groupname: name of the consumer group.
2579
- *ids: message ids to acknowlege .
2579
+ *ids: message ids to acknowledge .
2580
2580
"""
2581
2581
return self .execute_command ('XACK' , name , groupname , * ids )
2582
2582
@@ -4510,7 +4510,7 @@ def __call__(self, keys=[], args=[], client=None):
4510
4510
try :
4511
4511
return client .evalsha (self .sha , len (keys ), * args )
4512
4512
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
4514
4514
# that created this instance?
4515
4515
# Overwrite the sha just in case there was a discrepancy.
4516
4516
self .sha = client .script_load (self .script )
0 commit comments