@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version : Python 3.12\n "
16
16
"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 "
18
18
"PO-Revision-Date : 2021-06-28 00:53+0000\n "
19
19
"Last-Translator : Takanori Suzuki <takanori@takanory.net>, 2023\n "
20
20
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -299,21 +299,16 @@ msgstr "例外を処理する"
299
299
300
300
#: ../../howto/urllib2.rst:197
301
301
msgid ""
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)."
305
305
msgstr ""
306
- "*urlopen* はレスポンスを処理できなかった場合、 :exc:`URLError` を送出します "
307
- "(ふつうの Python API では、組み込み例外の :exc:`ValueError`, :exc:"
308
- "`TypeError` などが送出されますが)。"
309
306
310
307
#: ../../howto/urllib2.rst:201
311
308
msgid ""
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."
314
311
msgstr ""
315
- ":exc:`HTTPError` は :exc:`URLError` のサブクラスで HTTP URLs の特定の状況で送"
316
- "出されます。"
317
312
318
313
#: ../../howto/urllib2.rst:204
319
314
msgid "The exception classes are exported from the :mod:`urllib.error` module."
@@ -349,18 +344,10 @@ msgid ""
349
344
"request. The default handlers will handle some of these responses for you "
350
345
"(for example, if the response is a \" redirection\" that requests the client "
351
346
"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 ""
364
351
365
352
#: ../../howto/urllib2.rst:235
366
353
msgid ""
@@ -369,11 +356,9 @@ msgstr "HTTP のエラーコード全てについては :rfc:`2616` の10節を
369
356
370
357
#: ../../howto/urllib2.rst:237
371
358
msgid ""
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."
374
361
msgstr ""
375
- "送出された :exc:`HTTPError` インスタンスは整数の 'code' 属性を持っていて、"
376
- "サーバーによって送られた応答に対応しています。"
377
362
378
363
#: ../../howto/urllib2.rst:241
379
364
msgid "Error Codes"
@@ -402,29 +387,22 @@ msgstr ""
402
387
#: ../../howto/urllib2.rst:319
403
388
msgid ""
404
389
"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::"
409
394
msgstr ""
410
- "エラーが起きた場合、サーバーは HTTP エラーコード *と* エラーページを返して応"
411
- "答します。返されたページに対する応答として :exc:`HTTPError` インスタンスを使"
412
- "うことができます。これは code 属性に対しても同様です、これらは ``urllib."
413
- "response`` モジュールによって返された read も geturl, info などのメソッドも"
414
- "持っています::"
415
395
416
396
#: ../../howto/urllib2.rst:339
417
397
msgid "Wrapping it Up"
418
398
msgstr "エラーをラップする"
419
399
420
400
#: ../../howto/urllib2.rst:341
421
401
msgid ""
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."
424
405
msgstr ""
425
- ":exc:`HTTPError` *または* :exc:`URLError` が起きたときのために準備しておきた"
426
- "い場合には。二つの基本的なアプローチがあります。私は二つ目のアプローチを好み"
427
- "ます。"
428
406
429
407
#: ../../howto/urllib2.rst:345
430
408
msgid "Number 1"
@@ -433,10 +411,8 @@ msgstr "その1"
433
411
#: ../../howto/urllib2.rst:367
434
412
msgid ""
435
413
"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`."
437
415
msgstr ""
438
- "``except HTTPError`` が *必ず* 最初に来る必要があります、そうしないと "
439
- "``except URLError`` も :exc:`HTTPError` を捕捉してしまいます。"
440
416
441
417
#: ../../howto/urllib2.rst:371
442
418
msgid "Number 2"
@@ -448,13 +424,10 @@ msgstr "info と geturl"
448
424
449
425
#: ../../howto/urllib2.rst:394
450
426
msgid ""
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`.."
454
430
msgstr ""
455
- "レスポンスは urlopen (または :exc:`HTTPError` インスタンス) によって返さ"
456
- "れ、 :meth:`info` と :meth:`geturl` の二つの便利なメソッドを持っていて、モ"
457
- "ジュール :mod:`urllib.response` で定義されています。"
458
431
459
432
#: ../../howto/urllib2.rst:398
460
433
msgid ""
0 commit comments