Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8828aca

Browse files
committed
[po] auto sync bot
1 parent e864819 commit 8828aca

4 files changed

Lines changed: 2860 additions & 2827 deletions

File tree

library/asyncio-eventloops.po

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.6\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-01-05 15:01+0000\n"
11+
"POT-Creation-Date: 2018-05-30 13:28+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: ww song <[email protected]>, 2018\n"
1414
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -260,32 +260,33 @@ msgstr ""
260260
#: ../../library/asyncio-eventloops.rst:171
261261
msgid ""
262262
"Returns an event loop object implementing the :class:`AbstractEventLoop` "
263-
"interface."
263+
"interface. In case called from coroutine, it returns the currently running "
264+
"event loop."
264265
msgstr ""
265266

266-
#: ../../library/asyncio-eventloops.rst:174
267+
#: ../../library/asyncio-eventloops.rst:175
267268
msgid ""
268269
"Raises an exception in case no event loop has been set for the current "
269270
"context and the current policy does not specify to create one. It must never"
270271
" return ``None``."
271272
msgstr ""
272273

273-
#: ../../library/asyncio-eventloops.rst:180
274+
#: ../../library/asyncio-eventloops.rst:183
274275
msgid "Set the event loop for the current context to *loop*."
275276
msgstr ""
276277

277-
#: ../../library/asyncio-eventloops.rst:184
278+
#: ../../library/asyncio-eventloops.rst:187
278279
msgid ""
279280
"Create and return a new event loop object according to this policy's rules."
280281
msgstr ""
281282

282-
#: ../../library/asyncio-eventloops.rst:187
283+
#: ../../library/asyncio-eventloops.rst:190
283284
msgid ""
284285
"If there's need to set this loop as the event loop for the current context, "
285286
":meth:`set_event_loop` must be called explicitly."
286287
msgstr ""
287288

288-
#: ../../library/asyncio-eventloops.rst:191
289+
#: ../../library/asyncio-eventloops.rst:194
289290
msgid ""
290291
"The default policy defines context as the current thread, and manages an "
291292
"event loop per thread that interacts with :mod:`asyncio`. If the current "
@@ -294,25 +295,25 @@ msgid ""
294295
"when called from the main thread, but raises :exc:`RuntimeError` otherwise."
295296
msgstr ""
296297

297-
#: ../../library/asyncio-eventloops.rst:199
298+
#: ../../library/asyncio-eventloops.rst:202
298299
msgid "Access to the global loop policy"
299300
msgstr ""
300301

301-
#: ../../library/asyncio-eventloops.rst:203
302+
#: ../../library/asyncio-eventloops.rst:206
302303
msgid "Get the current event loop policy."
303304
msgstr ""
304305

305-
#: ../../library/asyncio-eventloops.rst:207
306+
#: ../../library/asyncio-eventloops.rst:210
306307
msgid ""
307308
"Set the current event loop policy. If *policy* is ``None``, the default "
308309
"policy is restored."
309310
msgstr ""
310311

311-
#: ../../library/asyncio-eventloops.rst:212
312+
#: ../../library/asyncio-eventloops.rst:215
312313
msgid "Customizing the event loop policy"
313314
msgstr ""
314315

315-
#: ../../library/asyncio-eventloops.rst:214
316+
#: ../../library/asyncio-eventloops.rst:217
316317
msgid ""
317318
"To implement a new event loop policy, it is recommended you subclass the "
318319
"concrete default event loop policy :class:`DefaultEventLoopPolicy` and "

library/asyncio-task.po

Lines changed: 43 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.6\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-01-05 15:01+0000\n"
11+
"POT-Creation-Date: 2018-05-30 13:28+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: Shengjing Zhu <[email protected]>, 2018\n"
1414
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -651,81 +651,87 @@ msgid ""
651651
"cancellation of one child to cause other children to be cancelled.)"
652652
msgstr ""
653653

654-
#: ../../library/asyncio-task.rst:573
654+
#: ../../library/asyncio-task.rst:571
655+
msgid ""
656+
"If the *gather* itself is cancelled, the cancellation is propagated "
657+
"regardless of *return_exceptions*."
658+
msgstr ""
659+
660+
#: ../../library/asyncio-task.rst:577
655661
msgid ""
656662
"Return ``True`` if *obj* is a :ref:`coroutine object <coroutine>`, which may"
657663
" be based on a generator or an :keyword:`async def` coroutine."
658664
msgstr ""
659665

660-
#: ../../library/asyncio-task.rst:578
666+
#: ../../library/asyncio-task.rst:582
661667
msgid ""
662668
"Return ``True`` if *func* is determined to be a :ref:`coroutine function "
663669
"<coroutine>`, which may be a decorated generator function or an "
664670
":keyword:`async def` function."
665671
msgstr ""
666672

667-
#: ../../library/asyncio-task.rst:584
673+
#: ../../library/asyncio-task.rst:588
668674
msgid "Submit a :ref:`coroutine object <coroutine>` to a given event loop."
669675
msgstr ""
670676

671-
#: ../../library/asyncio-task.rst:586
677+
#: ../../library/asyncio-task.rst:590
672678
msgid "Return a :class:`concurrent.futures.Future` to access the result."
673679
msgstr ""
674680

675-
#: ../../library/asyncio-task.rst:588
681+
#: ../../library/asyncio-task.rst:592
676682
msgid ""
677683
"This function is meant to be called from a different thread than the one "
678684
"where the event loop is running. Usage::"
679685
msgstr ""
680686

681-
#: ../../library/asyncio-task.rst:598
687+
#: ../../library/asyncio-task.rst:602
682688
msgid ""
683689
"If an exception is raised in the coroutine, the returned future will be "
684690
"notified. It can also be used to cancel the task in the event loop::"
685691
msgstr ""
686692

687-
#: ../../library/asyncio-task.rst:611
693+
#: ../../library/asyncio-task.rst:615
688694
msgid ""
689695
"See the :ref:`concurrency and multithreading <asyncio-multithreading>` "
690696
"section of the documentation."
691697
msgstr "查看 :ref:`并发和多线程<asyncio-multithreading>` 章节的文档。"
692698

693-
#: ../../library/asyncio-task.rst:616
699+
#: ../../library/asyncio-task.rst:620
694700
msgid ""
695701
"Unlike other functions from the module, :func:`run_coroutine_threadsafe` "
696702
"requires the *loop* argument to be passed explicitly."
697703
msgstr ""
698704

699-
#: ../../library/asyncio-task.rst:624
705+
#: ../../library/asyncio-task.rst:628
700706
msgid ""
701707
"Create a :ref:`coroutine <coroutine>` that completes after a given time (in "
702708
"seconds). If *result* is provided, it is produced to the caller when the "
703709
"coroutine completes."
704710
msgstr ""
705711

706-
#: ../../library/asyncio-task.rst:628
712+
#: ../../library/asyncio-task.rst:632
707713
msgid ""
708714
"The resolution of the sleep depends on the :ref:`granularity of the event "
709715
"loop <asyncio-delayed-calls>`."
710716
msgstr ""
711717

712-
#: ../../library/asyncio-task.rst:631 ../../library/asyncio-task.rst:695
718+
#: ../../library/asyncio-task.rst:635 ../../library/asyncio-task.rst:699
713719
msgid "This function is a :ref:`coroutine <coroutine>`."
714720
msgstr ""
715721

716-
#: ../../library/asyncio-task.rst:635
722+
#: ../../library/asyncio-task.rst:639
717723
msgid "Wait for a future, shielding it from cancellation."
718724
msgstr ""
719725

720-
#: ../../library/asyncio-task.rst:637
726+
#: ../../library/asyncio-task.rst:641
721727
msgid "The statement::"
722728
msgstr ""
723729

724-
#: ../../library/asyncio-task.rst:641
730+
#: ../../library/asyncio-task.rst:645
725731
msgid "is exactly equivalent to the statement::"
726732
msgstr ""
727733

728-
#: ../../library/asyncio-task.rst:645
734+
#: ../../library/asyncio-task.rst:649
729735
msgid ""
730736
"*except* that if the coroutine containing it is cancelled, the task running "
731737
"in ``something()`` is not cancelled. From the point of view of "
@@ -735,107 +741,107 @@ msgid ""
735741
"cancelled by other means this will still cancel ``shield()``."
736742
msgstr ""
737743

738-
#: ../../library/asyncio-task.rst:652
744+
#: ../../library/asyncio-task.rst:656
739745
msgid ""
740746
"If you want to completely ignore cancellation (not recommended) you can "
741747
"combine ``shield()`` with a try/except clause, as follows::"
742748
msgstr ""
743749

744-
#: ../../library/asyncio-task.rst:664
750+
#: ../../library/asyncio-task.rst:668
745751
msgid ""
746752
"Wait for the Futures and coroutine objects given by the sequence *futures* "
747753
"to complete. Coroutines will be wrapped in Tasks. Returns two sets of "
748754
":class:`Future`: (done, pending)."
749755
msgstr ""
750756

751-
#: ../../library/asyncio-task.rst:668
757+
#: ../../library/asyncio-task.rst:672
752758
msgid "The sequence *futures* must not be empty."
753759
msgstr ""
754760

755-
#: ../../library/asyncio-task.rst:670
761+
#: ../../library/asyncio-task.rst:674
756762
msgid ""
757763
"*timeout* can be used to control the maximum number of seconds to wait "
758764
"before returning. *timeout* can be an int or float. If *timeout* is not "
759765
"specified or ``None``, there is no limit to the wait time."
760766
msgstr ""
761767

762-
#: ../../library/asyncio-task.rst:674
768+
#: ../../library/asyncio-task.rst:678
763769
msgid ""
764770
"*return_when* indicates when this function should return. It must be one of"
765771
" the following constants of the :mod:`concurrent.futures` module:"
766772
msgstr ""
767773

768-
#: ../../library/asyncio-task.rst:680
774+
#: ../../library/asyncio-task.rst:684
769775
msgid "Constant"
770776
msgstr ""
771777

772-
#: ../../library/asyncio-task.rst:680
778+
#: ../../library/asyncio-task.rst:684
773779
msgid "Description"
774780
msgstr ""
775781

776-
#: ../../library/asyncio-task.rst:682
782+
#: ../../library/asyncio-task.rst:686
777783
msgid ":const:`FIRST_COMPLETED`"
778784
msgstr ""
779785

780-
#: ../../library/asyncio-task.rst:682
786+
#: ../../library/asyncio-task.rst:686
781787
msgid "The function will return when any future finishes or is cancelled."
782788
msgstr ""
783789

784-
#: ../../library/asyncio-task.rst:685
790+
#: ../../library/asyncio-task.rst:689
785791
msgid ":const:`FIRST_EXCEPTION`"
786792
msgstr ""
787793

788-
#: ../../library/asyncio-task.rst:685
794+
#: ../../library/asyncio-task.rst:689
789795
msgid ""
790796
"The function will return when any future finishes by raising an exception. "
791797
"If no future raises an exception then it is equivalent to "
792798
":const:`ALL_COMPLETED`."
793799
msgstr ""
794800

795-
#: ../../library/asyncio-task.rst:691
801+
#: ../../library/asyncio-task.rst:695
796802
msgid ":const:`ALL_COMPLETED`"
797803
msgstr ""
798804

799-
#: ../../library/asyncio-task.rst:691
805+
#: ../../library/asyncio-task.rst:695
800806
msgid "The function will return when all futures finish or are cancelled."
801807
msgstr ""
802808

803-
#: ../../library/asyncio-task.rst:697
809+
#: ../../library/asyncio-task.rst:701
804810
msgid "Usage::"
805811
msgstr ""
806812

807-
#: ../../library/asyncio-task.rst:703
813+
#: ../../library/asyncio-task.rst:707
808814
msgid ""
809815
"This does not raise :exc:`asyncio.TimeoutError`! Futures that aren't done "
810816
"when the timeout occurs are returned in the second set."
811817
msgstr ""
812818

813-
#: ../../library/asyncio-task.rst:709
819+
#: ../../library/asyncio-task.rst:713
814820
msgid ""
815821
"Wait for the single :class:`Future` or :ref:`coroutine object <coroutine>` "
816822
"to complete with timeout. If *timeout* is ``None``, block until the future "
817823
"completes."
818824
msgstr ""
819825

820-
#: ../../library/asyncio-task.rst:713
826+
#: ../../library/asyncio-task.rst:717
821827
msgid "Coroutine will be wrapped in :class:`Task`."
822828
msgstr ""
823829

824-
#: ../../library/asyncio-task.rst:715
830+
#: ../../library/asyncio-task.rst:719
825831
msgid ""
826832
"Returns result of the Future or coroutine. When a timeout occurs, it "
827833
"cancels the task and raises :exc:`asyncio.TimeoutError`. To avoid the task "
828834
"cancellation, wrap it in :func:`shield`."
829835
msgstr ""
830836

831-
#: ../../library/asyncio-task.rst:719
837+
#: ../../library/asyncio-task.rst:723
832838
msgid "If the wait is cancelled, the future *fut* is also cancelled."
833839
msgstr ""
834840

835-
#: ../../library/asyncio-task.rst:721
841+
#: ../../library/asyncio-task.rst:725
836842
msgid "This function is a :ref:`coroutine <coroutine>`, usage::"
837843
msgstr ""
838844

839-
#: ../../library/asyncio-task.rst:725
845+
#: ../../library/asyncio-task.rst:729
840846
msgid "If the wait is cancelled, the future *fut* is now also cancelled."
841847
msgstr ""

whatsnew/3.6.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.6\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-05-21 13:20+0900\n"
11+
"POT-Creation-Date: 2018-05-30 13:28+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1414
"MIME-Version: 1.0\n"
@@ -976,8 +976,8 @@ msgstr ""
976976
#: ../../whatsnew/3.6.rst:820
977977
msgid ""
978978
"The :func:`~asyncio.get_event_loop` function has been changed to always "
979-
"return the currently running loop when called from couroutines and "
980-
"callbacks. (Contributed by Yury Selivanov in :issue:`28613`.)"
979+
"return the currently running loop when called from coroutines and callbacks."
980+
" (Contributed by Yury Selivanov in :issue:`28613`.)"
981981
msgstr ""
982982

983983
#: ../../whatsnew/3.6.rst:825

0 commit comments

Comments
 (0)