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

Skip to content

Commit 3477df3

Browse files
committed
[po] auto sync bot
1 parent 4131184 commit 3477df3

3 files changed

Lines changed: 40 additions & 28 deletions

File tree

library/codecs.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ msgid ""
244244
":class:`StreamReaderWriter`, providing transparent encoding/decoding. The "
245245
"default file mode is ``'r'``, meaning to open the file in read mode."
246246
msgstr ""
247+
"使用给定的 *mode* 打开已编码的文件并返回一个 :class:`StreamReaderWriter` 的实例,提供透明的编码/解码。 "
248+
"默认的文件模式为 ``'r'``,表示以读取模式打开文件。"
247249

248250
#: ../../library/codecs.rst:185
249251
msgid ""
@@ -252,6 +254,8 @@ msgid ""
252254
"may be any binary mode acceptable to the built-in :func:`open` function; the"
253255
" ``'b'`` is automatically added."
254256
msgstr ""
257+
"下层的已编码文件总是以二进制模式打开。 在读取和写入时不会自动执行 ``'\\n'`` 的转换。 *mode* 参数可以是内置 :func:`open`"
258+
" 函数所接受的任意二进制模式;``'b'`` 会被自动添加。"
255259

256260
#: ../../library/codecs.rst:190
257261
msgid ""

library/importlib.po

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# Meng Du <[email protected]>, 2019
1111
# Shengjing Zhu <[email protected]>, 2019
1212
# Yixin Qian <[email protected]>, 2019
13-
# Freesand Leo <[email protected]>, 2019
1413
# leollon <[email protected]>, 2019
14+
# Freesand Leo <[email protected]>, 2019
1515
#
1616
#, fuzzy
1717
msgid ""
@@ -20,7 +20,7 @@ msgstr ""
2020
"Report-Msgid-Bugs-To: \n"
2121
"POT-Creation-Date: 2019-07-04 11:50+0900\n"
2222
"PO-Revision-Date: 2017-02-16 23:15+0000\n"
23-
"Last-Translator: leollon <mssm.good@outlook.com>, 2019\n"
23+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
2424
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2525
"MIME-Version: 1.0\n"
2626
"Content-Type: text/plain; charset=UTF-8\n"
@@ -829,7 +829,8 @@ msgid ""
829829
"actual resources, e.g. it is acceptable to return names for which "
830830
":meth:`is_resource` would be false."
831831
msgstr ""
832-
"返回一个字符串的:term:`可迭代对象`覆盖这个包的内容。需要注意的是不要求通过迭代器返回的所有名字都是实际的资源,例如,返回名字的::meth:`is_resource`的返回值为false是可以接受的。"
832+
"反回由字符串组成的 :term:`iterable`,表示这个包的所有内容。 请注意并不要求迭代器返回的所有名称都是实际的资源,例如返回 "
833+
":meth:`is_resource` 为假值的名称也是可接受的。"
833834

834835
#: ../../library/importlib.rst:539
835836
msgid ""
@@ -851,7 +852,7 @@ msgid ""
851852
"An abstract base class for a :term:`loader` which implements the optional "
852853
":pep:`302` protocol for loading arbitrary resources from the storage back-"
853854
"end."
854-
msgstr "实现可选的用于从存储后端加载任意资源的:pep:`302`协议的加载器的一个抽象基类。"
855+
msgstr "实现可选的用于从存储后端加载任意资源的 :pep:`302` 协议的加载器的一个抽象基类。"
855856

856857
#: ../../library/importlib.rst:556
857858
msgid ""
@@ -868,25 +869,29 @@ msgid ""
868869
"*path* is expected to be constructed using a module's :attr:`__file__` "
869870
"attribute or an item from a package's :attr:`__path__`."
870871
msgstr ""
871-
"一个用于返回位于*path*的字节数据的抽象方法。有一个允许存储任意数据的类文件存储后端的加载器能够实现这个抽象方法来直接访问这些被存储的数据。如果不能够找到*path`,则引发:exc:`OSError`异常。*path*被希望通过一个模块的:attr:`__file`属性或来自一个包的:attr:`__path__`来构成。"
872+
"一个用于返回位于 *path* "
873+
"的字节数据的抽象方法。有一个允许存储任意数据的类文件存储后端的加载器能够实现这个抽象方法来直接访问这些被存储的数据。如果不能够找到 "
874+
"*path*,则会引发 :exc:`OSError` 异常。*path* 被希望使用一个模块的 :attr:`__file` 属性或来自一个包的 "
875+
":attr:`__path__` 来构建。"
872876

873877
#: ../../library/importlib.rst:570
874878
msgid "Raises :exc:`OSError` instead of :exc:`NotImplementedError`."
875-
msgstr "引发:exc:`OSError`异常而不是:exc:`NotImplementedError`异常。"
879+
msgstr "引发 :exc:`OSError` 异常而不是 :exc:`NotImplementedError` 异常。"
876880

877881
#: ../../library/importlib.rst:576
878882
msgid ""
879883
"An abstract base class for a :term:`loader` which implements the optional "
880884
":pep:`302` protocol for loaders that inspect modules."
881-
msgstr "一个实现加载器检查模块可选的:pep:`302` 协议的:term:`loader`的抽象基类。"
885+
msgstr "一个实现加载器检查模块可选的 :pep:`302` 协议的 :term:`loader` 的抽象基类。"
882886

883887
#: ../../library/importlib.rst:581
884888
msgid ""
885889
"Return the code object for a module, or ``None`` if the module does not have"
886890
" a code object (as would be the case, for example, for a built-in module). "
887891
"Raise an :exc:`ImportError` if loader cannot find the requested module."
888892
msgstr ""
889-
"返回一个模块的代码对象,或如果模块没有一个代码对象(例如,对于内置的模块来说,这会是这种情况),则为``None``。如果加载器不能找到请求的模块,则引发:exc:`ImportError`异常。"
893+
"返回一个模块的代码对象,或如果模块没有一个代码对象(例如,对于内置的模块来说,这会是这种情况),则为 ``None``。 "
894+
"如果加载器不能找到请求的模块,则引发 :exc:`ImportError` 异常。"
890895

891896
#: ../../library/importlib.rst:587
892897
msgid ""
@@ -906,21 +911,23 @@ msgid ""
906911
" available (e.g. a built-in module). Raises :exc:`ImportError` if the loader"
907912
" cannot find the module specified."
908913
msgstr ""
909-
"一个返回模块源的抽象方法。使用:term:`universal "
910-
"newlines`作为文本字符串被返回,将所有可识别行分割符翻译成``'\\n``字符。如果没有可用的源(例如,一个内置模块),则返回``None``。如果加载器不能找到指定的模块,则引发:exc:`ImportError`异常。"
914+
"一个返回模块源的抽象方法。使用 :term:`universal newlines` 作为文本字符串被返回,将所有可识别行分割符翻译成 "
915+
"``'\\n'`` 字符。 如果没有可用的源(例如,一个内置模块),则返回 ``None``。 如果加载器不能找到指定的模块,则引发 "
916+
":exc:`ImportError` 异常。"
911917

912918
#: ../../library/importlib.rst:604 ../../library/importlib.rst:613
913919
#: ../../library/importlib.rst:663
914920
msgid "Raises :exc:`ImportError` instead of :exc:`NotImplementedError`."
915-
msgstr "引发:exc:`ImportError`异常而不是:exc:`NotImplementedError`异常。"
921+
msgstr "引发 :exc:`ImportError` 而不是 :exc:`NotImplementedError`。"
916922

917923
#: ../../library/importlib.rst:609
918924
msgid ""
919925
"An abstract method to return a true value if the module is a package, a "
920926
"false value otherwise. :exc:`ImportError` is raised if the :term:`loader` "
921927
"cannot find the module."
922928
msgstr ""
923-
"一个返回True的抽象方法,如果这个模块是一个包,否则是False。如果:term:`loader`不能找到这个模块,则引发:exc:`ImportError`异常。"
929+
"一个抽象方法,如果这个模块是一个包则返回真值,否则返回假值。 如果 :term:`loader` 不能找到这个模块,则引发 "
930+
":exc:`ImportError`。"
924931

925932
#: ../../library/importlib.rst:618
926933
msgid "Create a code object from Python source."
@@ -933,7 +940,8 @@ msgid ""
933940
"the source code originated from, which can be an abstract concept (e.g. "
934941
"location in a zip file)."
935942
msgstr ""
936-
"参数*data*可以是任意:func:`compile`函数支持的类型(即,字符串或字节类型)。参数*path*应该是源代码来源的路径,这可能是一个抽象的概念(例如,位于一个zip文件中)。"
943+
"参数 *data* 可以是任意 :func:`compile` 函数支持的类型(例如字符串或字节串)。 参数 *path* "
944+
"应该是源代码来源的路径,这可能是一个抽象概念(例如位于一个 zip 文件中)。"
937945

938946
#: ../../library/importlib.rst:625
939947
msgid ""
@@ -947,29 +955,30 @@ msgstr "使得这个方法变成静态的。"
947955

948956
#: ../../library/importlib.rst:635
949957
msgid "Implementation of :meth:`Loader.exec_module`."
950-
msgstr ":meth:`Loader.exec_module`的实现。"
958+
msgstr ":meth:`Loader.exec_module` 的实现。"
951959

952960
#: ../../library/importlib.rst:641
953961
msgid "Implementation of :meth:`Loader.load_module`."
954-
msgstr ":meth:`Loader.load_module`的实现。"
962+
msgstr ":meth:`Loader.load_module` 的实现。"
955963

956964
#: ../../library/importlib.rst:643
957965
msgid "use :meth:`exec_module` instead."
958-
msgstr "使用:meth:`exec_module`来代替。"
966+
msgstr "使用 :meth:`exec_module` 来代替。"
959967

960968
#: ../../library/importlib.rst:649
961969
msgid ""
962970
"An abstract base class which inherits from :class:`InspectLoader` that, when"
963971
" implemented, helps a module to be executed as a script. The ABC represents "
964972
"an optional :pep:`302` protocol."
965973
msgstr ""
966-
"一个继承:class:`InspectLoader`,当被实现时,帮助一个模块当作一个脚本来执行的抽象基类。这个抽象基类表示可选的:pep:`302`协议。"
974+
"一个继承自 :class:`InspectLoader` 的抽象基类,当被实现时,帮助一个模块作为脚本来执行。 这个抽象基类表示可选的 "
975+
":pep:`302` 协议。"
967976

968977
#: ../../library/importlib.rst:655
969978
msgid ""
970979
"An abstract method that is to return the value of :attr:`__file__` for the "
971980
"specified module. If no path is available, :exc:`ImportError` is raised."
972-
msgstr "一个用来为指定模块返回:attr:`__file__`的值的抽象方法。如果无路径可用,则引发:exc:`ImportError`异常。"
981+
msgstr "一个用来为指定模块返回 :attr:`__file__` 的值的抽象方法。如果无路径可用,则引发 :exc:`ImportError`。"
973982

974983
#: ../../library/importlib.rst:659
975984
msgid ""
@@ -984,8 +993,8 @@ msgid ""
984993
":meth:`ResourceLoader.get_data` and :meth:`ExecutionLoader.get_filename`."
985994
msgstr ""
986995
"一个继承自 :class:`ResourceLoader` 和 :class:`ExecutionLoader`,提供 "
987-
":meth:`ResourceLoader.get_data` 和 "
988-
":meth:`ExecutionLoader.get_filename`具体实现的抽象基类。"
996+
":meth:`ResourceLoader.get_data` 和 :meth:`ExecutionLoader.get_filename` "
997+
"具体实现的抽象基类。"
989998

990999
#: ../../library/importlib.rst:673
9911000
msgid ""
@@ -1051,9 +1060,9 @@ msgid ""
10511060
"loading by removing the parsing step of Python's compiler, and so no "
10521061
"bytecode-specific API is exposed."
10531062
msgstr ""
1054-
"由这个类定义的抽象方法用来添加可选的字节码文件支持。不实现这些可选的方法(或导致它们引发:exc:`NotImplementedError`异常)导致这个加载器只能与源代码一起工作。实现这些方法允许加载器能与源"
1055-
" "
1056-
"*和*字节码文件一起工作。不允许只提供字节码的*无源式*加载。字节码文件是通过移除Python编译器的解析步骤来加速加载的优化,并且因此没有开放出字节码专用的API。"
1063+
"由这个类定义的抽象方法用来添加可选的字节码文件支持。不实现这些可选的方法(或导致它们引发 :exc:`NotImplementedError` "
1064+
"异常)导致这个加载器只能与源代码一起工作。 实现这些方法允许加载器能与源 *和* 字节码文件一起工作。不允许只提供字节码的 *无源式* "
1065+
"加载。字节码文件是通过移除 Python 编译器的解析步骤来加速加载的优化,并且因此没有开放出字节码专用的 API。"
10571066

10581067
#: ../../library/importlib.rst:724
10591068
msgid ""

reference/datamodel.po

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -914,11 +914,10 @@ msgid ""
914914
"exception is raised and the iterator will have reached the end of the set of"
915915
" values to be returned."
916916
msgstr ""
917-
"一个使用 :keyword:`yield` 语句 (见 :ref:`yield` 章节)的函数或方法被称作一个 "
918-
":dfn:`生成器函数`。利益个函数,当调用时,总是返回一个可以执行函数体的迭代器对象:调用该迭代器的 "
919-
":meth:`iterator.__next__` 方法将会导致这个函数一直运行直到它使用 :keyword:`!yield` "
920-
"语句提供了一个值为止。当这个函数执行 :keyword:`return` 语句或者最后停止, 一个 :exc:`StopIteration` "
921-
"异常被抛出并且这个迭代器将会到达将被返回的值的集合的末尾。"
917+
"一个使用 :keyword:`yield` 语句 (见 :ref:`yield` 章节)的函数或方法被称作一个 :dfn:`生成器函数`。 "
918+
"这样的函数在被调用时,总是返回一个可以执行函数体的迭代器对象:调用该迭代器的 :meth:`iterator.__next__` "
919+
"方法将会导致这个函数一直运行直到它使用 :keyword:`!yield` 语句提供了一个值为止。 当这个函数执行 :keyword:`return` "
920+
"语句或者执行到末尾时,将引发 :exc:`StopIteration` 异常并且这个迭代器将到达所返回的值集合的末尾。"
922921

923922
#: ../../reference/datamodel.rst:636
924923
msgid "Coroutine functions"

0 commit comments

Comments
 (0)