@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2023-09-22 14:13 +0000\n "
14
+ "POT-Creation-Date : 2023-09-29 14:12 +0000\n "
15
15
"PO-Revision-Date : 2021-06-28 00:53+0000\n "
16
16
"Last-Translator : Dmytro Kazanzhy, 2022\n "
17
17
"Language-Team : Ukrainian (https://app.transifex.com/python-doc/teams/5390/uk/)\n "
@@ -297,21 +297,16 @@ msgstr "Обробка винятків"
297
297
298
298
#: ../../howto/urllib2.rst:197
299
299
msgid ""
300
- "*urlopen* raises :exc:`URLError` when it cannot handle a response (though as "
301
- " usual with Python APIs, built-in exceptions such as :exc:`ValueError`, "
302
- ":exc:`TypeError` etc. may also be raised)."
300
+ "*urlopen* raises :exc:`~urllib.error. URLError` when it cannot handle a "
301
+ "response (though as usual with Python APIs, built-in exceptions such as "
302
+ ":exc:`ValueError`, :exc:` TypeError` etc. may also be raised)."
303
303
msgstr ""
304
- "*urlopen* викликає :exc:`URLError`, коли не може обробити відповідь (хоча, "
305
- "як зазвичай з Python API, також можуть виникати вбудовані винятки, такі як "
306
- ":exc:`ValueError`, :exc:`TypeError` тощо) ."
307
304
308
305
#: ../../howto/urllib2.rst:201
309
306
msgid ""
310
- ":exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific "
311
- "case of HTTP URLs."
307
+ ":exc:`~urllib.error. HTTPError` is the subclass of "
308
+ ":exc:`~urllib.error.URLError` raised in the specific case of HTTP URLs."
312
309
msgstr ""
313
- ":exc:`HTTPError` є підкласом :exc:`URLError`, що виникає в конкретному "
314
- "випадку URL-адрес HTTP."
315
310
316
311
#: ../../howto/urllib2.rst:204
317
312
msgid ""
@@ -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 '401' "
354
- "(authentication required)."
355
- msgstr ""
356
- "Кожна відповідь HTTP від сервера містить числовий \" код стану\" . Іноді код "
357
- "стану вказує на те, що сервер не може виконати запит. Обробники за "
358
- "замовчуванням оброблять деякі з цих відповідей за вас (наприклад, якщо "
359
- "відповідь є \" переспрямуванням\" , яке вимагає від клієнта отримати документ "
360
- "з іншої URL-адреси, urllib обробить це за вас). Для тих, хто не може "
361
- "впоратися, urlopen викличе :exc:`HTTPError`. Типові помилки включають "
362
- "\" 404\" (сторінку не знайдено), \" 403\" (запит заборонено) і \" 401\" "
363
- "(потрібна автентифікація)."
347
+ "For those it can't handle, urlopen will raise an "
348
+ ":exc:`~urllib.error.HTTPError`. Typical errors include '404' (page not "
349
+ "found), '403' (request forbidden), and '401' (authentication required)."
350
+ msgstr ""
364
351
365
352
#: ../../howto/urllib2.rst:235
366
353
msgid ""
@@ -370,11 +357,9 @@ msgstr ""
370
357
371
358
#: ../../howto/urllib2.rst:237
372
359
msgid ""
373
- "The :exc:`HTTPError` instance raised will have an integer 'code' attribute, "
374
- "which corresponds to the error sent by the server."
360
+ "The :exc:`~urllib.error. HTTPError` instance raised will have an integer "
361
+ "'code' attribute, which corresponds to the error sent by the server."
375
362
msgstr ""
376
- "Викликаний екземпляр :exc:`HTTPError` матиме цілочисельний атрибут \" code\" ,"
377
- " який відповідає помилці, надісланій сервером."
378
363
379
364
#: ../../howto/urllib2.rst:241
380
365
msgid "Error Codes"
@@ -403,27 +388,22 @@ msgstr ""
403
388
#: ../../howto/urllib2.rst:319
404
389
msgid ""
405
390
"When an error is raised the server responds by returning an HTTP error code "
406
- "*and* an error page. You can use the :exc:`HTTPError` instance as a response "
407
- " on the page returned. This means that as well as the code attribute, it "
408
- "also has read, geturl, and info, methods as returned by the "
391
+ "*and* an error page. You can use the :exc:`~urllib.error. HTTPError` instance"
392
+ " as a response on the page returned. This means that as well as the code "
393
+ "attribute, it also has read, geturl, and info, methods as returned by the "
409
394
"``urllib.response`` module::"
410
395
msgstr ""
411
- "Коли виникає помилка, сервер відповідає, повертаючи код помилки HTTP *і* "
412
- "сторінку помилки. Ви можете використовувати екземпляр :exc:`HTTPError` як "
413
- "відповідь на повернуту сторінку. Це означає, що окрім атрибута code, він "
414
- "також має методи read, geturl та info, які повертає модуль urllib.response::"
415
396
416
397
#: ../../howto/urllib2.rst:339
417
398
msgid "Wrapping it Up"
418
399
msgstr "Загортання"
419
400
420
401
#: ../../howto/urllib2.rst:341
421
402
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."
403
+ "So if you want to be prepared for :exc:`~urllib.error.HTTPError` *or* "
404
+ ":exc:`~urllib.error.URLError` there are two basic approaches. I prefer the "
405
+ "second approach."
424
406
msgstr ""
425
- "Отже, якщо ви хочете бути готовими до :exc:`HTTPError` *або* "
426
- ":exc:`URLError`, є два основні підходи. Я віддаю перевагу другому підходу."
427
407
428
408
#: ../../howto/urllib2.rst:345
429
409
msgid "Number 1"
@@ -432,10 +412,8 @@ msgstr "Номер 1"
432
412
#: ../../howto/urllib2.rst:367
433
413
msgid ""
434
414
"The ``except HTTPError`` *must* come first, otherwise ``except URLError`` "
435
- "will *also* catch an :exc:`HTTPError`."
415
+ "will *also* catch an :exc:`~urllib.error. HTTPError`."
436
416
msgstr ""
437
- "``except HTTPError`` *має* бути першим, інакше ``except URLError`` *також* "
438
- "перехопить :exc:`HTTPEror`."
439
417
440
418
#: ../../howto/urllib2.rst:371
441
419
msgid "Number 2"
@@ -447,13 +425,10 @@ msgstr "інформація та geturl"
447
425
448
426
#: ../../howto/urllib2.rst:394
449
427
msgid ""
450
- "The response returned by urlopen (or the :exc:`HTTPError` instance) has two "
451
- "useful methods :meth:`info` and :meth:`geturl` and is defined in the module "
452
- ":mod:`urllib.response`.."
428
+ "The response returned by urlopen (or the :exc:`~urllib.error. HTTPError` "
429
+ "instance) has two useful methods :meth:`info` and :meth:`geturl` and is "
430
+ "defined in the module :mod:`urllib.response`.."
453
431
msgstr ""
454
- "Відповідь, яку повертає urlopen (або екземпляр :exc:`HTTPError`), має два "
455
- "корисні методи :meth:`info` та :meth:`geturl` і визначено в модулі "
456
- ":mod:`urllib.response`.."
457
432
458
433
#: ../../howto/urllib2.rst:398
459
434
msgid ""
0 commit comments