Skip to content

Commit 393563a

Browse files
petyaslavovaManelCoutinhoSensei
authored andcommitted
Removing synchronous context manager handling from async RedisCluster. (#3679)
1 parent 155053a commit 393563a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

redis/asyncio/cluster.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,15 +1583,6 @@ async def __aexit__(self, exc_type: None, exc_value: None, traceback: None) -> N
15831583
def __await__(self) -> Generator[Any, None, "ClusterPipeline"]:
15841584
return self.initialize().__await__()
15851585

1586-
def __enter__(self) -> "ClusterPipeline":
1587-
# TODO: Remove this method before 7.0.0
1588-
self._execution_strategy._command_queue = []
1589-
return self
1590-
1591-
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None:
1592-
# TODO: Remove this method before 7.0.0
1593-
self._execution_strategy._command_queue = []
1594-
15951586
def __bool__(self) -> bool:
15961587
"Pipeline instances should always evaluate to True on Python 3+"
15971588
return True

0 commit comments

Comments
 (0)