Skip to content

Commit 4b73007

Browse files
Update translation
Co-Authored-By: Adorilson Bezerra <adorilson@gmail.com>
1 parent c54daa0 commit 4b73007

5 files changed

Lines changed: 14198 additions & 14120 deletions

File tree

library/asyncio-task.po

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.14\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2025-12-23 14:16+0000\n"
15+
"POT-Creation-Date: 2025-12-25 14:14+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1717
"Last-Translator: Adorilson Bezerra <adorilson@gmail.com>, 2025\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -2129,6 +2129,8 @@ msgid ""
21292129
"The method arranges for a :exc:`CancelledError` exception to be thrown into "
21302130
"the wrapped coroutine on the next cycle of the event loop."
21312131
msgstr ""
2132+
"O método prepara para que uma exceção :exc:`CancelledError` seja lançada na "
2133+
"corrotina contida no próximo ciclo do laço de eventos."
21322134

21332135
#: ../../library/asyncio-task.rst:1404
21342136
msgid ""
@@ -2149,6 +2151,7 @@ msgstr "Adicionado o parâmetro *msg*."
21492151
#: ../../library/asyncio-task.rst:1417
21502152
msgid "The ``msg`` parameter is propagated from cancelled task to its awaiter."
21512153
msgstr ""
2154+
"O parâmetro ``msg`` é propagado da tarefa cancelada para o seu aguardador."
21522155

21532156
#: ../../library/asyncio-task.rst:1422
21542157
msgid ""
@@ -2194,6 +2197,17 @@ msgid ""
21942197
"# cancel_me(): after sleep\n"
21952198
"# main(): cancel_me is cancelled now"
21962199
msgstr ""
2200+
"async def cancel_me(): print('cancel_me(): antes de dormir') "
2201+
"try: # Aguardar 1 hora await asyncio.sleep(3600) except "
2202+
"asyncio.CancelledError: print('cancel_me(): cancelar sono') "
2203+
"raise finally: print('cancel_me(): depois de dormir')async def "
2204+
"main(): # Criar uma Tarefa \"cancel_me\" task = asyncio."
2205+
"create_task(cancel_me()) # Aguardar 1 segundo await asyncio."
2206+
"sleep(1) task.cancel() try: await task except asyncio."
2207+
"CancelledError: print(\"main(): cancel_me foi cancelado "
2208+
"agora\")asyncio.run(main())# Saída esperada:## cancel_me(): antes de "
2209+
"dormir# cancel_me(): cancelar sono# cancel_me(): depois de "
2210+
"dormir# main(): cancel_me foi cancelado agora"
21972211

21982212
#: ../../library/asyncio-task.rst:1461
21992213
msgid "Return ``True`` if the Task is *cancelled*."
@@ -2215,13 +2229,15 @@ msgstr ""
22152229

22162230
#: ../../library/asyncio-task.rst:1471
22172231
msgid "Returns the remaining number of cancellation requests."
2218-
msgstr ""
2232+
msgstr "Retorna o número restante de pedidos de cancelamento."
22192233

22202234
#: ../../library/asyncio-task.rst:1473
22212235
msgid ""
22222236
"Note that once execution of a cancelled task completed, further calls to :"
22232237
"meth:`uncancel` are ineffective."
22242238
msgstr ""
2239+
"Note que, uma vez concluída a execução de uma tarefa cancelada, chamadas "
2240+
"adicionais para :meth:`uncancel` são ineficazes."
22252241

22262242
#: ../../library/asyncio-task.rst:1478
22272243
msgid ""
@@ -2245,6 +2261,11 @@ msgid ""
22452261
" # Outer code not affected by the timeout:\n"
22462262
" await unrelated_code()"
22472263
msgstr ""
2264+
"async def make_request_with_timeout(): try: async with asyncio."
2265+
"timeout(1): # Bloco estruturado afetado pelo timeout: "
2266+
"await make_request() await make_another_request() except "
2267+
"TimeoutError: log(\"Ocorreu um timeout\") # Código externo não "
2268+
"afetado pelo timeout: await unrelated_code()"
22482269

22492270
#: ../../library/asyncio-task.rst:1496
22502271
msgid ""
@@ -2254,13 +2275,21 @@ msgid ""
22542275
"`uncancel`. :class:`TaskGroup` context managers use :func:`uncancel` in a "
22552276
"similar fashion."
22562277
msgstr ""
2278+
"Enquanto o bloco com ``make_request()`` e ``make_another_request()`` possa "
2279+
"ser cancelado devido ao timeout, ``unrelated_code()`` deve continuar a "
2280+
"executar mesmo em caso de timeout. Isto é implementado com :meth:`uncancel`. "
2281+
"Os gerenciadores de contexto :class:`TaskGroup` usam :func:`uncancel` de "
2282+
"forma semelhante."
22572283

22582284
#: ../../library/asyncio-task.rst:1502
22592285
msgid ""
22602286
"If end-user code is, for some reason, suppressing cancellation by catching :"
22612287
"exc:`CancelledError`, it needs to call this method to remove the "
22622288
"cancellation state."
22632289
msgstr ""
2290+
"Se o código do usuário final, por alguma razão, estiver suprimindo o "
2291+
"cancelamento ao capturar :exc:`CancelledError`, precisa chamar este método "
2292+
"para remover o estado de cancelamento."
22642293

22652294
#: ../../library/asyncio-task.rst:1506
22662295
msgid ""
@@ -2270,10 +2299,16 @@ msgid ""
22702299
"that arrangement will be rescinded (by resetting the internal "
22712300
"``_must_cancel`` flag)."
22722301
msgstr ""
2302+
"Quando este método decrementa a contagem de cancelamentos para zero, "
2303+
"verifica se uma chamada anterior a :meth:`cancel` tinha preparado para que :"
2304+
"exc:`CancelledError` fosse lançado na tarefa. Se ainda não tiver sido "
2305+
"lançado, esse preparo será revogado (redefinindo o sinalizador interna "
2306+
"``_must_cancel``)."
22732307

22742308
#: ../../library/asyncio-task.rst:1512
22752309
msgid "Changed to rescind pending cancellation requests upon reaching zero."
22762310
msgstr ""
2311+
"Alterado para revogar os pedidos de cancelamento pendentes ao atingir zero."
22772312

22782313
#: ../../library/asyncio-task.rst:1517
22792314
msgid ""

0 commit comments

Comments
 (0)