File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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):
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"""
Original file line number Diff line number Diff line change 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
2525else :
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" )
You can’t perform that action at this time.
0 commit comments