Skip to content

Commit eb29f78

Browse files
author
github-actions
committed
Merge 3.11 into 3.8
1 parent 3d3ddf4 commit eb29f78

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

library/zipfile.po

+15
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,21 @@ msgid ""
223223
"``'a'`` and the file does not exist at all, it is created. If *mode* is "
224224
"``'r'`` or ``'a'``, the file should be seekable."
225225
msgstr ""
226+
"*mode* パラメータには、既存のファイルを読み込む場合は ``'r'`` 、内容を消去し"
227+
"て新しいファイルに書き込む場合は ``'w'`` 、既存のファイルの末尾に追加する場"
228+
"合は ``'a'`` 、ファイルが存在しない場合にのみファイルを作成して書き込む場合"
229+
"は ``'x'`` を指定します。\n"
230+
"*mode* が ``'x'`` で *file* が既存のファイルを指している場合、 :exc:"
231+
"`FileExistsError` が発生します。\n"
232+
"*mode* が ``'a'`` で *file* が既存の ZIP ファイルを指している場合、新しい "
233+
"ZIP アーカイブがそのファイルに追加されます。\n"
234+
"*file* が ZIP ファイルでない場合は、ファイルの末尾にあたらしい ZIP アーカイブ"
235+
"が追加されます。\n"
236+
"これは、既存のファイル (例えば :file:`python.exe`) に ZIP アーカイブを付け加"
237+
"える用途を想定したものです。\n"
238+
"*mode* が ``'a'`` で *file* が存在しない場合は、ファイルが作成されます。\n"
239+
"*mode* が ``'r'`` か ``'a'`` の場合、ファイルはシーク可能である必要がありま"
240+
"す。"
226241

227242
#: ../../library/zipfile.rst:160
228243
msgid ""

0 commit comments

Comments
 (0)