Skip to content

Commit 5437f7a

Browse files
committed
Suggestions from code review
1 parent 18bc9ed commit 5437f7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redis/asyncio/connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,8 +831,8 @@ async def can_read_destructive(self):
831831
async def read_response(
832832
self,
833833
disable_decoding: bool = False,
834-
*,
835834
timeout: Optional[float] = None,
835+
*,
836836
disconnect_on_error: bool = True,
837837
):
838838
"""Read the response from a previously sent command"""

tests/test_asyncio/test_commands.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
skip_unless_arch_bits,
2121
)
2222

23-
if sys.version_info.major >= 3 and sys.version_info.minor >= 11:
23+
if sys.version_info >= (3, 11, 3):
2424
from asyncio import timeout as async_timeout
2525
else:
2626
from async_timeout import timeout as async_timeout
@@ -3032,7 +3032,7 @@ async def helper():
30323032
# If the following is not done, further Timout operations will fail,
30333033
# because the timeout won't catch its Cancelled Error if the task
30343034
# has a pending cancel. Python documentation probably should reflect this.
3035-
if sys.version_info.major >= 3 and sys.version_info.minor >= 11:
3035+
if sys.version_info >= (3, 11):
30363036
asyncio.current_task().uncancel()
30373037
# if all is well, we can continue. The following should not hang.
30383038
await r.set("status", "down")

0 commit comments

Comments
 (0)