@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.12\n "
1616"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2023-09-22 14:13 +0000\n "
17+ "POT-Creation-Date : 2023-09-29 14:12 +0000\n "
1818"PO-Revision-Date : 2021-06-28 00:53+0000\n "
1919"Last-Translator : Takanori Suzuki <takanori@takanory.net>, 2023\n "
2020"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -299,21 +299,16 @@ msgstr "例外を処理する"
299299
300300#: ../../howto/urllib2.rst:197
301301msgid ""
302- "*urlopen* raises :exc:`URLError` when it cannot handle a response (though as "
303- "usual with Python APIs, built-in exceptions such as :exc:`ValueError`, :exc:"
304- "`TypeError` etc. may also be raised)."
302+ "*urlopen* raises :exc:`~urllib.error. URLError` when it cannot handle a "
303+ "response (though as usual with Python APIs, built-in exceptions such as :exc:"
304+ "`ValueError`, :exc:` TypeError` etc. may also be raised)."
305305msgstr ""
306- "*urlopen* はレスポンスを処理できなかった場合、 :exc:`URLError` を送出します "
307- "(ふつうの Python API では、組み込み例外の :exc:`ValueError`, :exc:"
308- "`TypeError` などが送出されますが)。"
309306
310307#: ../../howto/urllib2.rst:201
311308msgid ""
312- ":exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific "
313- "case of HTTP URLs."
309+ ":exc:`~urllib.error. HTTPError` is the subclass of :exc:`~urllib.error. "
310+ "URLError` raised in the specific case of HTTP URLs."
314311msgstr ""
315- ":exc:`HTTPError` は :exc:`URLError` のサブクラスで HTTP URLs の特定の状況で送"
316- "出されます。"
317312
318313#: ../../howto/urllib2.rst:204
319314msgid "The exception classes are exported from the :mod:`urllib.error` module."
@@ -349,18 +344,10 @@ msgid ""
349344"request. The default handlers will handle some of these responses for you "
350345"(for example, if the response is a \" redirection\" that requests the client "
351346"fetch the document from a different URL, urllib will handle that for you). "
352- "For those it can't handle, urlopen will raise an :exc:`HTTPError`. Typical "
353- "errors include '404' (page not found), '403' (request forbidden), and "
354- "'401' (authentication required)."
355- msgstr ""
356- "サーバーからの全ての HTTP レスポンスは「ステータスコード」の数値を持っていま"
357- "す。多くの場合ステータスコードはサーバーがリクエストを実現できなかったことを"
358- "意味します。デフォルトハンドラーはこれらのレスポンスのいくつかを処理してくれ"
359- "ます(例えばレスポンスが「リダイレクション」、つまりクライアントが別の URL を"
360- "取得するように要求する場合には urllib はこの処理を行ってくれます。) 処理でき"
361- "ないものに対しては urlopen は :exc:`HTTPError` を送出します。典型的なエラーに"
362- "は '404' (page not found), '403' (request forbidden) と "
363- "'401' (authentication required) が含まれます。"
347+ "For those it can't handle, urlopen will raise an :exc:`~urllib.error."
348+ "HTTPError`. Typical errors include '404' (page not found), '403' (request "
349+ "forbidden), and '401' (authentication required)."
350+ msgstr ""
364351
365352#: ../../howto/urllib2.rst:235
366353msgid ""
@@ -369,11 +356,9 @@ msgstr "HTTP のエラーコード全てについては :rfc:`2616` の10節を
369356
370357#: ../../howto/urllib2.rst:237
371358msgid ""
372- "The :exc:`HTTPError` instance raised will have an integer 'code' attribute, "
373- "which corresponds to the error sent by the server."
359+ "The :exc:`~urllib.error. HTTPError` instance raised will have an integer "
360+ "'code' attribute, which corresponds to the error sent by the server."
374361msgstr ""
375- "送出された :exc:`HTTPError` インスタンスは整数の 'code' 属性を持っていて、"
376- "サーバーによって送られた応答に対応しています。"
377362
378363#: ../../howto/urllib2.rst:241
379364msgid "Error Codes"
@@ -402,29 +387,22 @@ msgstr ""
402387#: ../../howto/urllib2.rst:319
403388msgid ""
404389"When an error is raised the server responds by returning an HTTP error code "
405- "*and* an error page. You can use the :exc:`HTTPError` instance as a response "
406- "on the page returned. This means that as well as the code attribute, it also "
407- "has read, geturl, and info, methods as returned by the ``urllib.response`` "
408- "module::"
390+ "*and* an error page. You can use the :exc:`~urllib.error. HTTPError` instance "
391+ "as a response on the page returned. This means that as well as the code "
392+ "attribute, it also has read, geturl, and info, methods as returned by the "
393+ "``urllib.response`` module::"
409394msgstr ""
410- "エラーが起きた場合、サーバーは HTTP エラーコード *と* エラーページを返して応"
411- "答します。返されたページに対する応答として :exc:`HTTPError` インスタンスを使"
412- "うことができます。これは code 属性に対しても同様です、これらは ``urllib."
413- "response`` モジュールによって返された read も geturl, info などのメソッドも"
414- "持っています::"
415395
416396#: ../../howto/urllib2.rst:339
417397msgid "Wrapping it Up"
418398msgstr "エラーをラップする"
419399
420400#: ../../howto/urllib2.rst:341
421401msgid ""
422- "So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` "
423- "there are two basic approaches. I prefer the second approach."
402+ "So if you want to be prepared for :exc:`~urllib.error.HTTPError` *or* :exc:"
403+ "`~urllib.error.URLError` there are two basic approaches. I prefer the second "
404+ "approach."
424405msgstr ""
425- ":exc:`HTTPError` *または* :exc:`URLError` が起きたときのために準備しておきた"
426- "い場合には。二つの基本的なアプローチがあります。私は二つ目のアプローチを好み"
427- "ます。"
428406
429407#: ../../howto/urllib2.rst:345
430408msgid "Number 1"
@@ -433,10 +411,8 @@ msgstr "その1"
433411#: ../../howto/urllib2.rst:367
434412msgid ""
435413"The ``except HTTPError`` *must* come first, otherwise ``except URLError`` "
436- "will *also* catch an :exc:`HTTPError`."
414+ "will *also* catch an :exc:`~urllib.error. HTTPError`."
437415msgstr ""
438- "``except HTTPError`` が *必ず* 最初に来る必要があります、そうしないと "
439- "``except URLError`` も :exc:`HTTPError` を捕捉してしまいます。"
440416
441417#: ../../howto/urllib2.rst:371
442418msgid "Number 2"
@@ -448,13 +424,10 @@ msgstr "info と geturl"
448424
449425#: ../../howto/urllib2.rst:394
450426msgid ""
451- "The response returned by urlopen (or the :exc:`HTTPError` instance) has two "
452- "useful methods :meth:`info` and :meth:`geturl` and is defined in the module : "
453- "mod:`urllib.response`.."
427+ "The response returned by urlopen (or the :exc:`~urllib.error. HTTPError` "
428+ "instance) has two useful methods :meth:`info` and :meth:`geturl` and is "
429+ "defined in the module : mod:`urllib.response`.."
454430msgstr ""
455- "レスポンスは urlopen (または :exc:`HTTPError` インスタンス) によって返さ"
456- "れ、 :meth:`info` と :meth:`geturl` の二つの便利なメソッドを持っていて、モ"
457- "ジュール :mod:`urllib.response` で定義されています。"
458431
459432#: ../../howto/urllib2.rst:398
460433msgid ""
0 commit comments