8
8
msgstr ""
9
9
"Project-Id-Version :Python 3.12\n "
10
10
"Report-Msgid-Bugs-To :\n "
11
- "POT-Creation-Date :2023-05-23 00:16 +0000\n "
11
+ "POT-Creation-Date :2023-09-30 00:03 +0000\n "
12
12
"PO-Revision-Date :2022-06-27 09:36+0800\n "
13
13
"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
14
14
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -226,15 +226,15 @@ msgstr ""
226
226
227
227
#: ../../howto/urllib2.rst:197
228
228
msgid ""
229
- "*urlopen* raises :exc:`URLError` when it cannot handle a response (though as "
230
- "usual with Python APIs, built-in exceptions such as :exc:`ValueError`, :exc:"
231
- "`TypeError` etc. may also be raised)."
229
+ "*urlopen* raises :exc:`~urllib.error. URLError` when it cannot handle a "
230
+ "response (though as usual with Python APIs, built-in exceptions such as :exc:"
231
+ "`ValueError`, :exc:` TypeError` etc. may also be raised)."
232
232
msgstr ""
233
233
234
234
#: ../../howto/urllib2.rst:201
235
235
msgid ""
236
- ":exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific "
237
- "case of HTTP URLs."
236
+ ":exc:`~urllib.error. HTTPError` is the subclass of :exc:`~urllib.error. "
237
+ "URLError` raised in the specific case of HTTP URLs."
238
238
msgstr ""
239
239
240
240
#: ../../howto/urllib2.rst:204
@@ -268,9 +268,9 @@ msgid ""
268
268
"request. The default handlers will handle some of these responses for you "
269
269
"(for example, if the response is a\" redirection\" that requests the client "
270
270
"fetch the document from a different URL, urllib will handle that for you). "
271
- "For those it can't handle, urlopen will raise an :exc:`HTTPError`. Typical "
272
- "errors include '404' (page not found), '403' (request forbidden), and "
273
- "'401' (authentication required)."
271
+ "For those it can't handle, urlopen will raise an :exc:`~urllib.error. "
272
+ "HTTPError`. Typical errors include '404' (page not found), '403' (request "
273
+ "forbidden), and '401' (authentication required)."
274
274
msgstr ""
275
275
276
276
#: ../../howto/urllib2.rst:235
@@ -280,8 +280,8 @@ msgstr ""
280
280
281
281
#: ../../howto/urllib2.rst:237
282
282
msgid ""
283
- "The :exc:`HTTPError` instance raised will have an integer 'code' attribute, "
284
- "which corresponds to the error sent by the server."
283
+ "The :exc:`~urllib.error. HTTPError` instance raised will have an integer "
284
+ "'code' attribute, which corresponds to the error sent by the server."
285
285
msgstr ""
286
286
287
287
#: ../../howto/urllib2.rst:241
@@ -305,10 +305,10 @@ msgstr ""
305
305
#: ../../howto/urllib2.rst:319
306
306
msgid ""
307
307
"When an error is raised the server responds by returning an HTTP error code "
308
- "*and* an error page. You can use the :exc:`HTTPError` instance as a response "
309
- "on the page returned. This means that as well as the code attribute, it also "
310
- "has read, geturl, and info, methods as returned by the ``urllib.response`` "
311
- "module::"
308
+ "*and* an error page. You can use the :exc:`~urllib.error. HTTPError` instance "
309
+ "as a response on the page returned. This means that as well as the code "
310
+ "attribute, it also has read, geturl, and info, methods as returned by the "
311
+ "``urllib.response`` module::"
312
312
msgstr ""
313
313
314
314
#: ../../howto/urllib2.rst:339
@@ -317,8 +317,9 @@ msgstr ""
317
317
318
318
#: ../../howto/urllib2.rst:341
319
319
msgid ""
320
- "So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` "
321
- "there are two basic approaches. I prefer the second approach."
320
+ "So if you want to be prepared for :exc:`~urllib.error.HTTPError` *or* :exc:"
321
+ "`~urllib.error.URLError` there are two basic approaches. I prefer the second "
322
+ "approach."
322
323
msgstr ""
323
324
324
325
#: ../../howto/urllib2.rst:345
@@ -328,7 +329,7 @@ msgstr ""
328
329
#: ../../howto/urllib2.rst:367
329
330
msgid ""
330
331
"The ``except HTTPError`` *must* come first, otherwise ``except URLError`` "
331
- "will *also* catch an :exc:`HTTPError`."
332
+ "will *also* catch an :exc:`~urllib.error. HTTPError`."
332
333
msgstr ""
333
334
334
335
#: ../../howto/urllib2.rst:371
@@ -341,9 +342,9 @@ msgstr ""
341
342
342
343
#: ../../howto/urllib2.rst:394
343
344
msgid ""
344
- "The response returned by urlopen (or the :exc:`HTTPError` instance) has two "
345
- "useful methods :meth:`info` and :meth:`geturl` and isdefined in the module : "
346
- "mod:`urllib.response`.."
345
+ "The response returned by urlopen (or the :exc:`~urllib.error. HTTPError` "
346
+ "instance) has two useful methods :meth:`info` and :meth:`geturl` and is "
347
+ "defined in the module : mod:`urllib.response`.."
347
348
msgstr ""
348
349
349
350
#: ../../howto/urllib2.rst:398