Skip to content

Commit 1e3efb7

Browse files
sync with cpython 7267c9b8
1 parent ff94a45 commit 1e3efb7

2 files changed

Lines changed: 28 additions & 26 deletions

File tree

library/difflib.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2026-07-29 00:26+0000\n"
9+
"POT-Creation-Date: 2026-08-25 00:10+0000\n"
1010
"PO-Revision-Date: 2016-11-19 00:29+0000\n"
1111
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -30,7 +30,7 @@ msgid ""
3030
"This module provides classes and functions for comparing sequences. Most of "
3131
"them compare sequences of text lines (for example lists of strings, or :term:"
3232
"`file objects <file object>`) and produce :dfn:`diffs` -- reports on the "
33-
"differences. Diffs can be produced in in various formats, including HTML and "
33+
"differences. Diffs can be produced in various formats, including HTML and "
3434
"context and unified diffs -- formats produced by tools like :manpage:`diff "
3535
"<diff(1)>` and :manpage:`git diff <git-diff(1)>`."
3636
msgstr ""
@@ -84,7 +84,7 @@ msgstr ""
8484
#: ../../library/difflib.rst:58
8585
msgid ""
8686
"Depending on your data, you should consider turning this heuristic off "
87-
"(setting :class:`~difflib.SequenceMatcher`'s *autojunk* argument to to "
87+
"(setting :class:`~difflib.SequenceMatcher`'s *autojunk* argument to "
8888
"``False``) or tuning it (using the *isjunk* argument, perhaps to one of the :"
8989
"ref:`predefined functions <difflib-isjunk-functions>`)."
9090
msgstr ""

library/tempfile.po

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.14\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-07-31 00:31+0000\n"
11+
"POT-Creation-Date: 2026-08-25 00:10+0000\n"
1212
"PO-Revision-Date: 2022-06-12 15:17+0800\n"
1313
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -578,54 +578,56 @@ msgid "A platform-specific location:"
578578
msgstr "與平臺相關的位置:"
579579

580580
#: ../../library/tempfile.rst:324
581+
#, fuzzy
581582
msgid ""
582-
"On Windows, the directories :file:`C:\\\\TEMP`, :file:`C:\\\\TMP`, :file:`\\"
583-
"\\TEMP`, and :file:`\\\\TMP`, in that order."
583+
"On Windows, the directories :file:`%USERPROFILE%\\\\AppData\\\\Local\\"
584+
"\\Temp`, :file:`%SYSTEMROOT%\\\\Temp`, :file:`C:\\\\TEMP`, :file:`C:\\"
585+
"\\TMP`, :file:`\\\\TEMP`, and :file:`\\\\TMP`, in that order."
584586
msgstr ""
585587
"在 Windows 上,目錄依次為 :file:`C:\\\\TEMP`、:file:`C:\\\\TMP`、:file:`\\"
586588
"\\TEMP` 和 :file:`\\\\TMP`。"
587589

588-
#: ../../library/tempfile.rst:327
590+
#: ../../library/tempfile.rst:330
589591
msgid ""
590592
"On all other platforms, the directories :file:`/tmp`, :file:`/var/tmp`, and :"
591593
"file:`/usr/tmp`, in that order."
592594
msgstr ""
593595
"在所有其他平臺上,目錄依次為 :file:`/tmp`、:file:`/var/tmp` 和 :file:`/usr/"
594596
"tmp`。"
595597

596-
#: ../../library/tempfile.rst:330
598+
#: ../../library/tempfile.rst:333
597599
msgid "As a last resort, the current working directory."
598600
msgstr "不得已時,使用目前工作目錄。"
599601

600-
#: ../../library/tempfile.rst:332
602+
#: ../../library/tempfile.rst:335
601603
msgid ""
602604
"The result of this search is cached, see the description of :data:`tempdir` "
603605
"below."
604606
msgstr "搜尋的結果會被 cache(快取)起來,請見下面 :data:`tempdir` 的描述。"
605607

606-
#: ../../library/tempfile.rst:337
608+
#: ../../library/tempfile.rst:340
607609
msgid ""
608610
"Always returns a str. Previously it would return any :data:`tempdir` value "
609611
"regardless of type so long as it was not ``None``."
610612
msgstr ""
611613
"回傳一個字串。在之前的版本中它會回傳任意 :data:`tempdir` 的值而不考慮它的型"
612614
"別,只要它不為 ``None``。"
613615

614-
#: ../../library/tempfile.rst:342
616+
#: ../../library/tempfile.rst:345
615617
msgid "Same as :func:`gettempdir` but the return value is in bytes."
616618
msgstr "與 :func:`gettempdir` 相同,但回傳值為位元組串型別。"
617619

618-
#: ../../library/tempfile.rst:348
620+
#: ../../library/tempfile.rst:351
619621
msgid ""
620622
"Return the filename prefix used to create temporary files. This does not "
621623
"contain the directory component."
622624
msgstr "回傳用於建立臨時檔案的檔名前綴,它不包含目錄部分。"
623625

624-
#: ../../library/tempfile.rst:353
626+
#: ../../library/tempfile.rst:356
625627
msgid "Same as :func:`gettempprefix` but the return value is in bytes."
626628
msgstr "與 :func:`gettempprefix` 相同,但回傳值為位元組串型別。"
627629

628-
#: ../../library/tempfile.rst:357
630+
#: ../../library/tempfile.rst:360
629631
msgid ""
630632
"The module uses a global variable to store the name of the directory used "
631633
"for temporary files returned by :func:`gettempdir`. It can be set directly "
@@ -639,7 +641,7 @@ msgstr ""
639641
"式都接受一個 *dir* 引數,它可被用於指定目錄。這是個推薦的做法,它不會透過改變"
640642
"全域性 API 行為而對其他不預期此行為的程式造成影響。"
641643

642-
#: ../../library/tempfile.rst:366
644+
#: ../../library/tempfile.rst:369
643645
msgid ""
644646
"When set to a value other than ``None``, this variable defines the default "
645647
"value for the *dir* argument to the functions defined in this module, "
@@ -649,7 +651,7 @@ msgstr ""
649651
"預設值,包括確定其型別為位元組串還是字串。它不可以為 :term:`path-like "
650652
"object`。"
651653

652-
#: ../../library/tempfile.rst:371
654+
#: ../../library/tempfile.rst:374
653655
msgid ""
654656
"If ``tempdir`` is ``None`` (the default) at any call to any of the above "
655657
"functions except :func:`gettempprefix` it is initialized following the "
@@ -658,7 +660,7 @@ msgstr ""
658660
"如果在呼叫除 :func:`gettempprefix` 外的上述任何函式時 ``tempdir`` 為 "
659661
"``None`` (預設值) 則它會按照 :func:`gettempdir` 中所描述的演算法來初始化。"
660662

661-
#: ../../library/tempfile.rst:377
663+
#: ../../library/tempfile.rst:380
662664
msgid ""
663665
"Beware that if you set ``tempdir`` to a bytes value, there is a nasty side "
664666
"effect: The global default return type of :func:`mkstemp` and :func:"
@@ -672,16 +674,16 @@ msgstr ""
672674
"``prefix``、``suffix`` 或 ``dir`` 時被改為位元組串。請不要編寫預期此行為或依"
673675
"賴於此行為的程式。這個奇怪的行為是為了維持與以往實作版本的相容性。"
674676

675-
#: ../../library/tempfile.rst:388
677+
#: ../../library/tempfile.rst:391
676678
msgid "Examples"
677679
msgstr "範例"
678680

679-
#: ../../library/tempfile.rst:390
681+
#: ../../library/tempfile.rst:393
680682
msgid ""
681683
"Here are some examples of typical usage of the :mod:`!tempfile` module::"
682684
msgstr "以下是 :mod:`!tempfile` module 的一些常見用法範例: ::"
683685

684-
#: ../../library/tempfile.rst:392
686+
#: ../../library/tempfile.rst:395
685687
msgid ""
686688
">>> import tempfile\n"
687689
"\n"
@@ -763,11 +765,11 @@ msgstr ""
763765
">>>\n"
764766
"# 目錄及其內容已被刪除"
765767

766-
#: ../../library/tempfile.rst:435
768+
#: ../../library/tempfile.rst:438
767769
msgid "Deprecated functions and variables"
768770
msgstr "已棄用的函式和變數"
769771

770-
#: ../../library/tempfile.rst:437
772+
#: ../../library/tempfile.rst:440
771773
msgid ""
772774
"A historical way to create temporary files was to first generate a file name "
773775
"with the :func:`mktemp` function and then create a file using this name. "
@@ -782,11 +784,11 @@ msgstr ""
782784
"之間的時間裡,其他程式可能會使用該名稱建立檔案。解決方案是將兩個步驟結合起"
783785
"來,並立即建立檔案。這個方案目前被 :func:`mkstemp` 和上述其他函式所採用。"
784786

785-
#: ../../library/tempfile.rst:448
787+
#: ../../library/tempfile.rst:451
786788
msgid "Use :func:`mkstemp` instead."
787789
msgstr "使用 :func:`mkstemp` 代替。"
788790

789-
#: ../../library/tempfile.rst:451
791+
#: ../../library/tempfile.rst:454
790792
msgid ""
791793
"Return an absolute pathname of a file that did not exist at the time the "
792794
"call is made. The *prefix*, *suffix*, and *dir* arguments are similar to "
@@ -797,7 +799,7 @@ msgstr ""
797799
"與 :func:`mkstemp` 中所用的類似,除了在於不支援位元組串型別的檔名且不支援 "
798800
"``suffix=None`` 和 ``prefix=None``。"
799801

800-
#: ../../library/tempfile.rst:458
802+
#: ../../library/tempfile.rst:461
801803
msgid ""
802804
"Use of this function may introduce a security hole in your program. By the "
803805
"time you get around to doing anything with the file name it returns, someone "
@@ -809,7 +811,7 @@ msgstr ""
809811
"作時,可能有人已經捷足先登了。:func:`mktemp` 的功能可以很輕鬆地用帶有 "
810812
"``delete=False`` 參數的 :func:`NamedTemporaryFile` 代替: ::"
811813

812-
#: ../../library/tempfile.rst:464
814+
#: ../../library/tempfile.rst:467
813815
msgid ""
814816
">>> f = NamedTemporaryFile(delete=False)\n"
815817
">>> f.name\n"

0 commit comments

Comments
 (0)