File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ async def trio_main():
2727 to_trio , from_aio = trio .open_memory_channel (float ("inf" ))
2828 from_trio = asyncio .Queue ()
2929
30- _task_ref = asyncio .create_task (aio_pingpong (from_trio , to_trio ))
30+ task_ref = asyncio .create_task (aio_pingpong (from_trio , to_trio ))
3131
3232 from_trio .put_nowait (0 )
3333
@@ -37,7 +37,7 @@ async def trio_main():
3737 from_trio .put_nowait (n + 1 )
3838 if n >= 10 :
3939 return
40- del _task_ref
40+ del task_ref
4141
4242
4343async def aio_pingpong (from_trio , to_trio ):
Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ async def open_file(
467467 :func:`trio.Path.open`
468468
469469 """
470- _file = wrap_file (
470+ file_ = wrap_file (
471471 await trio .to_thread .run_sync (
472472 io .open ,
473473 file ,
@@ -480,7 +480,7 @@ async def open_file(
480480 opener ,
481481 ),
482482 )
483- return _file
483+ return file_
484484
485485
486486def wrap_file (file : FileT ) -> AsyncIOWrapper [FileT ]:
Original file line number Diff line number Diff line change @@ -1283,26 +1283,26 @@ async def sendto(self, *args: object) -> int:
12831283 @_wraps (_stdlib_socket .socket .sendmsg , assigned = (), updated = ())
12841284 async def sendmsg (
12851285 self ,
1286- __buffers : Iterable [Buffer ],
1287- __ancdata : Iterable [tuple [int , int , Buffer ]] = (),
1288- __flags : int = 0 ,
1289- __address : AddressFormat | None = None ,
1286+ buffers : Iterable [Buffer ],
1287+ ancdata : Iterable [tuple [int , int , Buffer ]] = (),
1288+ flags : int = 0 ,
1289+ address : AddressFormat | None = None ,
12901290 ) -> int :
12911291 """Similar to :meth:`socket.socket.sendmsg`, but async.
12921292
12931293 Only available on platforms where :meth:`socket.socket.sendmsg` is
12941294 available.
12951295
12961296 """
1297- if __address is not None :
1298- __address = await self ._resolve_address_nocp (__address , local = False )
1297+ if address is not None :
1298+ address = await self ._resolve_address_nocp (address , local = False )
12991299 return await self ._nonblocking_helper (
13001300 _core .wait_writable ,
13011301 _stdlib_socket .socket .sendmsg ,
1302- __buffers ,
1303- __ancdata ,
1304- __flags ,
1305- __address ,
1302+ buffers ,
1303+ ancdata ,
1304+ flags ,
1305+ address ,
13061306 )
13071307
13081308 ################################################################
You can’t perform that action at this time.
0 commit comments