File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,10 @@ msgid ""
212
212
"section of the :mod:`importlib` documentation for details of the various "
213
213
"approaches."
214
214
msgstr ""
215
+ "もし以前は :func:`imp.find_module` と一緒に使っていたのなら、 :func:`importlib.import_module` を使うことを検討してください。\n"
216
+ "そうでなければ、 :func:`imp.find_module` に対して選択した代替手段によって返されるローダーを使用してください。\n"
217
+ "もし :func:`imp.load_module` とそれに関連する関数を path 引数付きで直接呼んでいたのなら、 :func:`importlib.util.spec_from_file_location` と :func:`importlib.util.module_from_spec` を組み合わせて使ってください。\n"
218
+ "様々な手法の詳細については :mod:`importlib` ドキュメントの :ref:`importlib-examples` 節を参照してください。"
215
219
216
220
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/imp.rst:126
217
221
msgid ""
Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ msgid ""
53
53
"This implements security behavior equivalent to that of ftp and other "
54
54
"programs that use :file:`.netrc`."
55
55
msgstr ""
56
+ ":class:`~netrc.netrc` のインスタンスやサブクラスのインスタンスは netrc ファイルのデータをカプセル化します。\n"
57
+ "初期化の際の引数が存在する場合、解析対象となるファイルの指定になります。\n"
58
+ "引数がない場合、 (:func:`os.path.expanduser` で特定される) ユーザのホームディレクトリ下にある :file:`.netrc` が読み出されます。それ以外の場合は :exc:`FileNotFoundError` 例外が送出されます。\n"
59
+ "解析エラーが発生した場合、ファイル名、行番号、解析を中断したトークンに関する情報の入った :exc:`NetrcParseError` を送出します。\n"
60
+ "POSIX システムにおいて引数を指定しない場合、ファイルのオーナシップやパーミッションが安全でない (プロセスを実行しているユーザ以外が所有者であるか、誰にでも読み書き出来てしまう) のに :file:`.netrc` ファイル内にパスワードが含まれていると、 :exc:`NetrcParseError` を送出します。\n"
61
+ "このセキュリティ的な振る舞いは、 ftp などの :file:`.netrc` を使うプログラムと同じものです。"
56
62
57
63
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/netrc.rst:35
58
64
msgid "Added the POSIX permission check."
You can’t perform that action at this time.
0 commit comments