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

Skip to content

Commit 592a167

Browse files
[po] auto sync
1 parent 47260ae commit 592a167

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

library/pkgutil.po

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,38 +130,40 @@ msgid ""
130130
":exc:`ImportError` and only returns the loader rather than the full "
131131
":class:`ModuleSpec`."
132132
msgstr ""
133+
"这是针对 :func:`importlib.util.find_spec` 的向下兼容包装器,它将大多数失败转换为 :exc:`ImportError`"
134+
" 并且只返回加载器而不是完整的 :class:`ModuleSpec`。"
133135

134136
#: ../../library/pkgutil.rst:87 ../../library/pkgutil.rst:104
135137
#: ../../library/pkgutil.rst:119 ../../library/pkgutil.rst:140
136138
#: ../../library/pkgutil.rst:161 ../../library/pkgutil.rst:200
137139
msgid ""
138140
"Updated to be based directly on :mod:`importlib` rather than relying on the "
139141
"package internal :pep:`302` import emulation."
140-
msgstr ""
142+
msgstr "更新为直接基于 :mod:`importlib` 而不是依赖于包内部的 :pep:`302` 导入模拟。"
141143

142144
#: ../../library/pkgutil.rst:91 ../../library/pkgutil.rst:123
143145
msgid "Updated to be based on :pep:`451`"
144-
msgstr ""
146+
msgstr "更新为基于 :pep:`451`"
145147

146148
#: ../../library/pkgutil.rst:96
147149
msgid "Retrieve a :term:`finder` for the given *path_item*."
148-
msgstr ""
150+
msgstr "为给定的 *path_item* 获取一个 :term:`finder`。"
149151

150152
#: ../../library/pkgutil.rst:98
151153
msgid ""
152154
"The returned finder is cached in :data:`sys.path_importer_cache` if it was "
153155
"newly created by a path hook."
154-
msgstr ""
156+
msgstr "返回的查找器如果是由一个路径钩子新建的则会被缓存至 :data:`sys.path_importer_cache`。"
155157

156158
#: ../../library/pkgutil.rst:101
157159
msgid ""
158160
"The cache (or part of it) can be cleared manually if a rescan of "
159161
":data:`sys.path_hooks` is necessary."
160-
msgstr ""
162+
msgstr "如果需要重新扫描 :data:`sys.path_hooks` 则缓存(或其一部分)可以被手动清空。"
161163

162164
#: ../../library/pkgutil.rst:111
163165
msgid "Get a :term:`loader` object for *module_or_name*."
164-
msgstr ""
166+
msgstr "为 *module_or_name* 获取一个 :term:`loader`。"
165167

166168
#: ../../library/pkgutil.rst:113
167169
msgid ""
@@ -171,10 +173,12 @@ msgid ""
171173
"not already imported, its containing package (if any) is imported, in order "
172174
"to establish the package ``__path__``."
173175
msgstr ""
176+
"如果模块或包可通过正常导入机制来访问,则会返回该机制相关部分的包装器。 如果模块无法找到或导入则返回 ``None``。 "
177+
"如果指定的模块尚未被导入,则包含它的包(如果存在)会被导入,以便建立包 ``__path__``。"
174178

175179
#: ../../library/pkgutil.rst:129
176180
msgid "Yield :term:`finder` objects for the given module name."
177-
msgstr ""
181+
msgstr "为给定的模块名称产生 :term:`finder` 对象。"
178182

179183
#: ../../library/pkgutil.rst:131
180184
msgid ""

0 commit comments

Comments
 (0)