Skip to content

Commit 40fdb15

Browse files
authored
Minor cleanups in commands/cluster.py (#2094)
1 parent 1475e5c commit 40fdb15

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

redis/commands/cluster.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ def replicaof(self, *args, **kwargs):
189189
190190
For more information see https://redis.io/commands/replicaof
191191
"""
192-
raise RedisClusterException("REPLICAOF is not supported in cluster" " mode")
192+
raise RedisClusterException("REPLICAOF is not supported in cluster mode")
193193

194194
def swapdb(self, *args, **kwargs):
195195
"""
196196
Swaps two Redis databases.
197197
198198
For more information see https://redis.io/commands/swapdb
199199
"""
200-
raise RedisClusterException("SWAPDB is not supported in cluster" " mode")
200+
raise RedisClusterException("SWAPDB is not supported in cluster mode")
201201

202202

203203
class ClusterDataAccessCommands(DataAccessCommands):
@@ -310,7 +310,6 @@ class RedisClusterCommands(
310310
target specific nodes. By default, if target_nodes is not specified, the
311311
command will be executed on the default cluster node.
312312
313-
314313
:param :target_nodes: type can be one of the followings:
315314
- nodes flag: ALL_NODES, PRIMARIES, REPLICAS, RANDOM
316315
- 'ClusterNode'
@@ -323,7 +322,7 @@ class RedisClusterCommands(
323322

324323
def cluster_myid(self, target_node):
325324
"""
326-
Returns the nodes id.
325+
Returns the node's id.
327326
328327
:target_node: 'ClusterNode'
329328
The node to execute the command on

0 commit comments

Comments
 (0)