Skip to content

Commit 513c8d0

Browse files
authored
Removing synchronous context manager handling from async RedisCluster. (#3679)
1 parent 23422c1 commit 513c8d0

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
@@ -1581,15 +1581,6 @@ async def __aexit__(self, exc_type: None, exc_value: None, traceback: None) -> N
15811581
def __await__(self) -> Generator[Any, None, "ClusterPipeline"]:
15821582
return self.initialize().__await__()
15831583

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

0 commit comments

Comments
 (0)