File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -831,8 +831,8 @@ async def can_read_destructive(self):
831
831
async def read_response (
832
832
self ,
833
833
disable_decoding : bool = False ,
834
- * ,
835
834
timeout : Optional [float ] = None ,
835
+ * ,
836
836
disconnect_on_error : bool = True ,
837
837
):
838
838
"""Read the response from a previously sent command"""
Original file line number Diff line number Diff line change 20
20
skip_unless_arch_bits ,
21
21
)
22
22
23
- if sys .version_info . major >= 3 and sys . version_info . minor >= 11 :
23
+ if sys .version_info >= ( 3 , 11 , 3 ) :
24
24
from asyncio import timeout as async_timeout
25
25
else :
26
26
from async_timeout import timeout as async_timeout
@@ -3032,7 +3032,7 @@ async def helper():
3032
3032
# If the following is not done, further Timout operations will fail,
3033
3033
# because the timeout won't catch its Cancelled Error if the task
3034
3034
# 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 ) :
3036
3036
asyncio .current_task ().uncancel ()
3037
3037
# if all is well, we can continue. The following should not hang.
3038
3038
await r .set ("status" , "down" )
You can’t perform that action at this time.
0 commit comments