summaryrefslogtreecommitdiff
path: root/redis/asyncio/cluster.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-07-27 16:18:41 +0300
committerGitHub <noreply@github.com>2022-07-27 16:18:41 +0300
commit607a59ad6ff0cabc7b0af7480f42043aebc2a33b (patch)
tree9aed66dc63dabb925c08203c2dc82b057305e85a /redis/asyncio/cluster.py
parentf665bd306dc843cec3e8fa01d6f4061385d1812e (diff)
downloadredis-py-607a59ad6ff0cabc7b0af7480f42043aebc2a33b.tar.gz
Drop python 3.6 support (#2306)
Diffstat (limited to 'redis/asyncio/cluster.py')
-rw-r--r--redis/asyncio/cluster.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/redis/asyncio/cluster.py b/redis/asyncio/cluster.py
index df0c17d..1a33563 100644
--- a/redis/asyncio/cluster.py
+++ b/redis/asyncio/cluster.py
@@ -377,8 +377,7 @@ class RedisCluster(AbstractRedis, AbstractRedisCluster, AsyncRedisClusterCommand
warnings.warn(f"{self._DEL_MESSAGE} {self!r}", ResourceWarning, source=self)
try:
context = {"client": self, "message": self._DEL_MESSAGE}
- # TODO: Change to get_running_loop() when dropping support for py3.6
- asyncio.get_event_loop().call_exception_handler(context)
+ asyncio.get_running_loop().call_exception_handler(context)
except RuntimeError:
...
@@ -834,8 +833,7 @@ class ClusterNode:
)
try:
context = {"client": self, "message": self._DEL_MESSAGE}
- # TODO: Change to get_running_loop() when dropping support for py3.6
- asyncio.get_event_loop().call_exception_handler(context)
+ asyncio.get_running_loop().call_exception_handler(context)
except RuntimeError:
...
break