1010# Meng Du <[email protected] >, 20191111# Shengjing Zhu <[email protected] >, 20191212# Yixin Qian <[email protected] >, 201913- # Freesand Leo <[email protected] >, 20191413# leollon <[email protected] >, 201914+ # Freesand Leo <[email protected] >, 20191515#
1616#, fuzzy
1717msgid ""
@@ -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."
831831msgstr ""
832- "返回一个字符串的:term:`可迭代对象`覆盖这个包的内容。需要注意的是不要求通过迭代器返回的所有名字都是实际的资源,例如,返回名字的::meth:`is_resource`的返回值为false是可以接受的。"
832+ "反回由字符串组成的 :term:`iterable`,表示这个包的所有内容。 请注意并不要求迭代器返回的所有名称都是实际的资源,例如返回 "
833+ ":meth:`is_resource` 为假值的名称也是可接受的。"
833834
834835#: ../../library/importlib.rst:539
835836msgid ""
@@ -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
857858msgid ""
@@ -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__`."
870871msgstr ""
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
874878msgid "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
878882msgid ""
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
884888msgid ""
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."
888892msgstr ""
889- "返回一个模块的代码对象,或如果模块没有一个代码对象(例如,对于内置的模块来说,这会是这种情况),则为``None``。如果加载器不能找到请求的模块,则引发:exc:`ImportError`异常。"
893+ "返回一个模块的代码对象,或如果模块没有一个代码对象(例如,对于内置的模块来说,这会是这种情况),则为 ``None``。 "
894+ "如果加载器不能找到请求的模块,则引发 :exc:`ImportError` 异常。"
890895
891896#: ../../library/importlib.rst:587
892897msgid ""
@@ -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."
908913msgstr ""
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
914920msgid "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
918924msgid ""
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."
922928msgstr ""
923- "一个返回True的抽象方法,如果这个模块是一个包,否则是False。如果:term:`loader`不能找到这个模块,则引发:exc:`ImportError`异常。"
929+ "一个抽象方法,如果这个模块是一个包则返回真值,否则返回假值。 如果 :term:`loader` 不能找到这个模块,则引发 "
930+ ":exc:`ImportError`。"
924931
925932#: ../../library/importlib.rst:618
926933msgid "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)."
935942msgstr ""
936- "参数*data*可以是任意:func:`compile`函数支持的类型(即,字符串或字节类型)。参数*path*应该是源代码来源的路径,这可能是一个抽象的概念(例如,位于一个zip文件中)。"
943+ "参数 *data* 可以是任意 :func:`compile` 函数支持的类型(例如字符串或字节串)。 参数 *path* "
944+ "应该是源代码来源的路径,这可能是一个抽象概念(例如位于一个 zip 文件中)。"
937945
938946#: ../../library/importlib.rst:625
939947msgid ""
@@ -947,29 +955,30 @@ msgstr "使得这个方法变成静态的。"
947955
948956#: ../../library/importlib.rst:635
949957msgid "Implementation of :meth:`Loader.exec_module`."
950- msgstr ":meth:`Loader.exec_module`的实现。"
958+ msgstr ":meth:`Loader.exec_module` 的实现。"
951959
952960#: ../../library/importlib.rst:641
953961msgid "Implementation of :meth:`Loader.load_module`."
954- msgstr ":meth:`Loader.load_module`的实现。"
962+ msgstr ":meth:`Loader.load_module` 的实现。"
955963
956964#: ../../library/importlib.rst:643
957965msgid "use :meth:`exec_module` instead."
958- msgstr "使用:meth:`exec_module`来代替。"
966+ msgstr "使用 :meth:`exec_module` 来代替。"
959967
960968#: ../../library/importlib.rst:649
961969msgid ""
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."
965973msgstr ""
966- "一个继承:class:`InspectLoader`,当被实现时,帮助一个模块当作一个脚本来执行的抽象基类。这个抽象基类表示可选的:pep:`302`协议。"
974+ "一个继承自 :class:`InspectLoader` 的抽象基类,当被实现时,帮助一个模块作为脚本来执行。 这个抽象基类表示可选的 "
975+ ":pep:`302` 协议。"
967976
968977#: ../../library/importlib.rst:655
969978msgid ""
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
975984msgid ""
@@ -984,8 +993,8 @@ msgid ""
984993":meth:`ResourceLoader.get_data` and :meth:`ExecutionLoader.get_filename`."
985994msgstr ""
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
9911000msgid ""
@@ -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."
10531062msgstr ""
1054- "由这个类定义的抽象方法用来添加可选的字节码文件支持。不实现这些可选的方法(或导致它们引发:exc:`NotImplementedError`异常)导致这个加载器只能与源代码一起工作。实现这些方法允许加载器能与源 "
1055- " "
1056- "*和*字节码文件一起工作。不允许只提供字节码的*无源式* 加载。字节码文件是通过移除Python编译器的解析步骤来加速加载的优化,并且因此没有开放出字节码专用的API 。"
1063+ "由这个类定义的抽象方法用来添加可选的字节码文件支持。不实现这些可选的方法(或导致它们引发 :exc:`NotImplementedError` "
1064+ "异常)导致这个加载器只能与源代码一起工作。 实现这些方法允许加载器能与源 *和* 字节码文件一起工作。不允许只提供字节码的 *无源式* "
1065+ "加载。字节码文件是通过移除 Python 编译器的解析步骤来加速加载的优化,并且因此没有开放出字节码专用的 API 。"
10571066
10581067#: ../../library/importlib.rst:724
10591068msgid ""
0 commit comments