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

Skip to content

Commit e5f25ee

Browse files
committed
[po] auto sync bot
1 parent aa57047 commit e5f25ee

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

library/importlib.po

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -868,33 +868,35 @@ msgid ""
868868
"*path* is expected to be constructed using a module's :attr:`__file__` "
869869
"attribute or an item from a package's :attr:`__path__`."
870870
msgstr ""
871+
"一个用于返回位于*path*的字节数据的抽象方法。有一个允许存储任意数据的类文件存储后端的加载器能够实现这个抽象方法来直接访问这些被存储的数据。如果不能够找到*path`,则引发:exc:`OSError`异常。*path*被希望通过一个模块的:attr:`__file`属性或来自一个包的:attr:`__path__`来构成。"
871872

872873
#: ../../library/importlib.rst:570
873874
msgid "Raises :exc:`OSError` instead of :exc:`NotImplementedError`."
874-
msgstr ""
875+
msgstr "引发:exc:`OSError`异常而不是:exc:`NotImplementedError`异常。"
875876

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

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

889891
#: ../../library/importlib.rst:587
890892
msgid ""
891893
"While the method has a default implementation, it is suggested that it be "
892894
"overridden if possible for performance."
893-
msgstr ""
895+
msgstr "当这个方法有一个默认的实现的时候,出于性能方面的考虑,如果有可能的话,建议覆盖它。"
894896

895897
#: ../../library/importlib.rst:593
896898
msgid "No longer abstract and a concrete implementation is provided."
897-
msgstr ""
899+
msgstr "不再抽象并且提供一个具体的实现。"
898900

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

908912
#: ../../library/importlib.rst:604 ../../library/importlib.rst:613
909913
#: ../../library/importlib.rst:663
910914
msgid "Raises :exc:`ImportError` instead of :exc:`NotImplementedError`."
911-
msgstr ""
915+
msgstr "引发:exc:`ImportError`异常而不是:exc:`NotImplementedError`异常。"
912916

913917
#: ../../library/importlib.rst:609
914918
msgid ""
915919
"An abstract method to return a true value if the module is a package, a "
916920
"false value otherwise. :exc:`ImportError` is raised if the :term:`loader` "
917921
"cannot find the module."
918922
msgstr ""
923+
"一个返回True的抽象方法,如果这个模块是一个包,否则是False。如果:term:`loader`不能找到这个模块,则引发:exc:`ImportError`异常。"
919924

920925
#: ../../library/importlib.rst:618
921926
msgid "Create a code object from Python source."
922-
msgstr ""
927+
msgstr "创建一个来自Python源码的代码对象。"
923928

924929
#: ../../library/importlib.rst:620
925930
msgid ""
@@ -928,6 +933,7 @@ msgid ""
928933
"the source code originated from, which can be an abstract concept (e.g. "
929934
"location in a zip file)."
930935
msgstr ""
936+
"参数*data*可以是任意:func:`compile`函数支持的类型(即,字符串或字节类型)。参数*path*应该是源代码来源的路径,这可能是一个抽象的概念(例如,位于一个zip文件中)。"
931937

932938
#: ../../library/importlib.rst:625
933939
msgid ""

0 commit comments

Comments
 (0)