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

Skip to content

Commit 2a80eda

Browse files
[po] auto sync
1 parent b8c2da9 commit 2a80eda

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.54%", "updated_at": "2023-08-10T15:56:33Z"}
1+
{"translation": "89.55%", "updated_at": "2023-08-10T23:56:43Z"}

library/pathlib.po

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,9 @@ msgid ""
916916
"their targets, and consequently visit directories pointed to by symlinks "
917917
"(where supported)."
918918
msgstr ""
919+
"在默认情况下,:meth:`Path.walk` 不会跟踪符号链接,而是将其添加到 *filenames* 列表中。 将 "
920+
"*follow_symlinks*设为真值可解析符号链接并根据它们的目标将其放入*dirnames* 和 *filenames* "
921+
"中,从而(在受支持的系统上)访问符号链接所指向的目录。"
919922

920923
#: ../../library/pathlib.rst:1097
921924
msgid ""
@@ -924,6 +927,8 @@ msgid ""
924927
":meth:`Path.walk` does not keep track of the directories it has already "
925928
"visited."
926929
msgstr ""
930+
"请注意将 *follow_symlinks* 设为真值会在链接指向自身的父目录时导致无限递归。 :meth:`Path.walk` "
931+
"不会跟踪已它访问过的目录。"
927932

928933
#: ../../library/pathlib.rst:1102
929934
msgid ""
@@ -933,25 +938,32 @@ msgid ""
933938
"try to descend into it. To prevent such behavior, remove directories from "
934939
"*dirnames* as appropriate."
935940
msgstr ""
941+
":meth:`Path.walk` 会假定在执行过程中它所遍历的目录没有被修改。 例如,如果 *dirnames* 中的某个目录已被替换为符号链接并且 "
942+
"*follow_symlinks* 为假值,则 :meth:`Path.walk` 仍会尝试进入该目录。 为防止出现这种行为,请相应地移除 "
943+
"*dirnames* 中的目录。"
936944

937945
#: ../../library/pathlib.rst:1110
938946
msgid ""
939947
"Unlike :func:`os.walk`, :meth:`Path.walk` lists symlinks to directories in "
940948
"*filenames* if *follow_symlinks* is false."
941949
msgstr ""
950+
"与 :func:`os.walk` 不同,当 *follow_symlinks* 为假值时 :meth:`Path.walk` 会在 "
951+
"*filenames* 中列出指向目录的符号链接。"
942952

943953
#: ../../library/pathlib.rst:1113
944954
msgid ""
945955
"This example displays the number of bytes used by all files in each "
946956
"directory, while ignoring ``__pycache__`` directories::"
947-
msgstr ""
957+
msgstr "这个例子显示每个目录中所有文件使用的总字节数,忽略其中的 ``__pycache__`` 目录::"
948958

949959
#: ../../library/pathlib.rst:1129
950960
msgid ""
951961
"This next example is a simple implementation of :func:`shutil.rmtree`. "
952962
"Walking the tree bottom-up is essential as :func:`rmdir` doesn't allow "
953963
"deleting a directory before it is empty::"
954964
msgstr ""
965+
"下一个例子是 :func:`shutil.rmtree` 的一个简单实现。 由于 :func:`rmdir` "
966+
"不允许在目录为空之前删除该目录因此自下而上地遍历目录树是至关重要的::"
955967

956968
#: ../../library/pathlib.rst:1146
957969
msgid ""
@@ -1110,7 +1122,7 @@ msgstr ""
11101122

11111123
#: ../../library/pathlib.rst:1317
11121124
msgid "The *strict* parameter was added (pre-3.6 behavior is strict)."
1113-
msgstr ""
1125+
msgstr "增加了 *strict* 参数(3.6 之前的行为是默认采用 strict 模式)。"
11141126

11151127
#: ../../library/pathlib.rst:1322
11161128
msgid ""

0 commit comments

Comments
 (0)