File tree Expand file tree Collapse file tree 2 files changed +5073
-5059
lines changed
Expand file tree Collapse file tree 2 files changed +5073
-5059
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,9 @@ msgid ""
131131"the search is unsuccessful, :exc:`ImportError` is raised. Other exceptions "
132132"indicate problems with the arguments or environment."
133133msgstr ""
134+ "モジュールが組み込みモジュールか frozen なモジュールの場合、 *file* と *pathname* のどちらも ``None`` になり、 *description* タプルの要素の接尾辞 (拡張子) とモードは空文字列になります。モジュール型は上の括弧の中に示されます。\n"
135+ "検索に失敗した場合は、 :exc:`ImportError` が発生します。\n"
136+ "他の例外は引数または環境に問題があることを示しています。"
134137
135138#: /home/travis/build/python/cpython-doc-catalog/Doc/library/imp.rst:75
136139msgid ""
@@ -214,6 +217,10 @@ msgid ""
214217"section of the :mod:`importlib` documentation for details of the various "
215218"approaches."
216219msgstr ""
220+ "もし以前は :func:`imp.find_module` と一緒に使っていたのなら、 :func:`importlib.import_module` を使うことを検討してください。\n"
221+ "そうでなければ、 :func:`imp.find_module` に対して選択した代替手段によって返されるローダーを使用してください。\n"
222+ "もし :func:`imp.load_module` とそれに関連する関数を path 引数付きで直接呼んでいたのなら、 :func:`importlib.util.spec_from_file_location` と :func:`importlib.util.module_from_spec` を組み合わせて使ってください。\n"
223+ "様々な手法の詳細については :mod:`importlib` ドキュメントの :ref:`importlib-examples` 節を参照してください。"
217224
218225#: /home/travis/build/python/cpython-doc-catalog/Doc/library/imp.rst:126
219226msgid ""
You can’t perform that action at this time.
0 commit comments