File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1228,6 +1228,12 @@ msgid ""
12281228"message (unless the *propagate* flag for a logger is set to a false value, "
12291229"at which point the passing to ancestor handlers stops)."
12301230msgstr ""
1231+ "记录消息通过使用 :dfn:`handlers` 进行调度机制,它们是 :class:`Handler` 类的子类的实例。处理程序负责确保记录的消息(以"
1232+ " :class:`LogRecord` 的形式)最终位于特定位置(或一组位置),这对该消息的目标受众(例如最终用户、 "
1233+ "支持服务台员工、系统管理员、开发人员)。传递处理程序用于特定目标的 :class:`LogRecord` 实例。 "
1234+ "每个记录器可以有零个、一个或多个与之关联的处理程序(通过 :class:`Logger` 的 :meth:`~Logger.addHandler` "
1235+ "方法)。除了与记录器直接关联的任何处理程序之外,还调用与记录器的 *所有祖先相关联的所有处理程序来分派消息(除非记录器的 *propagate* "
1236+ "标志设置为false值,这将停止传递到上级处理程序)。"
12311237
12321238#: ../../howto/logging.rst:886
12331239msgid ""
Original file line number Diff line number Diff line change @@ -4021,6 +4021,8 @@ msgid ""
40214021"their file permission bits you can set the umask before invoking "
40224022"``makedirs()``. (Contributed by Serhiy Storchaka in :issue:`19930`.)"
40234023msgstr ""
4024+ ":func:`os.makedirs` 的 *mode* 参数不会再影响新建中间层级目录的文件权限位。 要设置它们的文件权限位你可以在发起调用 "
4025+ "``makedirs()`` 之前设置 umask。 (由 Serhiy Storchaka 在 :issue:`19930` 中贡献。)"
40244026
40254027#: ../../whatsnew/3.7.rst:2295
40264028msgid ""
You can’t perform that action at this time.
0 commit comments