File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -851,16 +851,20 @@ msgid ""
851851" do your imports, and you want to define it at class level rather than "
852852"instance level, you need to wrap it with :func:`staticmethod`. For example::"
853853msgstr ""
854+ "导入解析默认使用内置的 :func:`__import__` 函数来执行导入。 你可能想要将其替换为你自己的导入机制:如果是这样的话,你可以替换 "
855+ ":class:`DictConfigurator` 或其超类 :class:`BaseConfigurator` 类的 :attr:`importer`"
856+ " 属性。 但是你必须小心谨慎,因为函数是从类中通过描述器方式来访问的。 如果你使用 Python "
857+ "可调用对象来执行导入,并且你希望在类层级而不是在实例层级上定义它,则你需要用 :func:`staticmethod` 来装饰它。 例如::"
854858
855859#: ../../library/logging.config.rst:619
856860msgid ""
857861"You don't need to wrap with :func:`staticmethod` if you're setting the "
858862"import callable on a configurator *instance*."
859- msgstr ""
863+ msgstr "如果你是在一个配置器的 *实例* 上设置导入可调用对象则你不需要用 :func:`staticmethod` 来装饰。 "
860864
861865#: ../../library/logging.config.rst:626
862866msgid "Configuration file format"
863- msgstr ""
867+ msgstr "配置文件格式 "
864868
865869#: ../../library/logging.config.rst:628
866870msgid ""
You can’t perform that action at this time.
0 commit comments