Skip to content

Commit 9d92ca7

Browse files
stam
1 parent c02ecb5 commit 9d92ca7

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

redis/commands.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def client_list(self, _type=None, client_id=[]):
373373
return self.execute_command('CLIENT LIST', *args)
374374

375375
def client_getname(self):
376-
"Returns the current connection name"
376+
"""Returns the current connection name"""
377377
return self.execute_command('CLIENT GETNAME')
378378

379379
def client_reply(self, reply):
@@ -396,11 +396,12 @@ def client_reply(self, reply):
396396
return self.execute_command("CLIENT REPLY", reply)
397397

398398
def client_id(self):
399-
"Returns the current connection id"
399+
"""Returns the current connection id"""
400400
return self.execute_command('CLIENT ID')
401401

402402
def client_trackinginfo(self):
403-
"""Returns the information about the current client connection's
403+
"""
404+
Returns the information about the current client connection's
404405
use of the server assisted client side cache.
405406
See https://redis.io/commands/client-trackinginfo
406407
"""
@@ -438,39 +439,39 @@ def client_unpause(self):
438439
return self.execute_command('CLIENT UNPAUSE')
439440

440441
def readwrite(self):
441-
"Disables read queries for a connection to a Redis Cluster slave node"
442+
"""Disables read queries for a connection to a Redis Cluster slave node"""
442443
return self.execute_command('READWRITE')
443444

444445
def readonly(self):
445-
"Enables read queries for a connection to a Redis Cluster replica node"
446+
"""Enables read queries for a connection to a Redis Cluster replica node"""
446447
return self.execute_command('READONLY')
447448

448449
def config_get(self, pattern="*"):
449-
"Return a dictionary of configuration based on the ``pattern``"
450+
"""Return a dictionary of configuration based on the ``pattern``"""
450451
return self.execute_command('CONFIG GET', pattern)
451452

452453
def config_set(self, name, value):
453454
"Set config item ``name`` with ``value``"
454455
return self.execute_command('CONFIG SET', name, value)
455456

456457
def config_resetstat(self):
457-
"Reset runtime statistics"
458+
"""Reset runtime statistics"""
458459
return self.execute_command('CONFIG RESETSTAT')
459460

460461
def config_rewrite(self):
461-
"Rewrite config file with the minimal change to reflect running config"
462+
"""Rewrite config file with the minimal change to reflect running config"""
462463
return self.execute_command('CONFIG REWRITE')
463464

464465
def dbsize(self):
465-
"Returns the number of keys in the current database"
466+
"""Returns the number of keys in the current database"""
466467
return self.execute_command('DBSIZE')
467468

468469
def debug_object(self, key):
469-
"Returns version specific meta information about a given key"
470+
"""Returns version specific meta information about a given key"""
470471
return self.execute_command('DEBUG OBJECT', key)
471472

472473
def echo(self, value):
473-
"Echo the string back from the server"
474+
"""Echo the string back from the server"""
474475
return self.execute_command('ECHO', value)
475476

476477
def flushall(self, asynchronous=False):
@@ -524,7 +525,8 @@ def lastsave(self):
524525
return self.execute_command('LASTSAVE')
525526

526527
def lolwut(self, *version_numbers):
527-
"""Get the Redis version and a piece of generative computer art
528+
"""
529+
Get the Redis version and a piece of generative computer art
528530
See: https://redis.io/commands/lolwut
529531
"""
530532
if version_numbers:

0 commit comments

Comments
 (0)