Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf219ce3

Browse files
sync with cpython 8882b30d
1 parente6acdae commitf219ce3

File tree

6 files changed

+113
-84
lines changed

6 files changed

+113
-84
lines changed

‎howto/urllib2.po

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.12\n"
1010
"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"
1212
"PO-Revision-Date:2022-06-27 09:36+0800\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -226,15 +226,15 @@ msgstr ""
226226

227227
#:../../howto/urllib2.rst:197
228228
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 asusual with Python APIs, built-in exceptions such as :exc:"
231+
"`ValueError`, :exc:`TypeError` etc. may also be raised)."
232232
msgstr""
233233

234234
#:../../howto/urllib2.rst:201
235235
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 specificcase of HTTP URLs."
238238
msgstr""
239239

240240
#:../../howto/urllib2.rst:204
@@ -268,9 +268,9 @@ msgid ""
268268
"request. The default handlers will handle some of these responses for you "
269269
"(for example, if the response is a\"redirection\" that requests the client "
270270
"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`. Typicalerrors include '404' (page not found), '403' (request "
273+
"forbidden), and'401' (authentication required)."
274274
msgstr""
275275

276276
#:../../howto/urllib2.rst:235
@@ -280,8 +280,8 @@ msgstr ""
280280

281281
#:../../howto/urllib2.rst:237
282282
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."
285285
msgstr""
286286

287287
#:../../howto/urllib2.rst:241
@@ -305,10 +305,10 @@ msgstr ""
305305
#:../../howto/urllib2.rst:319
306306
msgid""
307307
"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 responseon the page returned. This means that as well as the code "
310+
"attribute, it alsohas read, geturl, and info, methods as returned by the "
311+
"``urllib.response``module::"
312312
msgstr""
313313

314314
#:../../howto/urllib2.rst:339
@@ -317,8 +317,9 @@ msgstr ""
317317

318318
#:../../howto/urllib2.rst:341
319319
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."
322323
msgstr""
323324

324325
#:../../howto/urllib2.rst:345
@@ -328,7 +329,7 @@ msgstr ""
328329
#:../../howto/urllib2.rst:367
329330
msgid""
330331
"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`."
332333
msgstr""
333334

334335
#:../../howto/urllib2.rst:371
@@ -341,9 +342,9 @@ msgstr ""
341342

342343
#:../../howto/urllib2.rst:394
343344
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 twouseful methods :meth:`info` and :meth:`geturl` and is "
347+
"defined in the module :mod:`urllib.response`.."
347348
msgstr""
348349

349350
#:../../howto/urllib2.rst:398

‎library/codecs.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2023-09-25 00:03+0000\n"
10+
"POT-Creation-Date:2023-09-30 00:03+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:40+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -2370,7 +2370,7 @@ msgstr "raw_unicode_escape"
23702370

23712371
#:../../library/codecs.rst:1351
23722372
msgid""
2373-
"Latin-1 encoding with :samp:`\\\\u{XXXX}` and :samp:`\\\\U{XXXXXXXX}`` for "
2373+
"Latin-1 encoding with :samp:`\\\\u{XXXX}` and :samp:`\\\\U{XXXXXXXX}` for "
23742374
"other code points. Existing backslashes are not escaped in any way. It is "
23752375
"used in the Python pickle protocol."
23762376
msgstr""

‎library/difflib.po

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2023-07-17 17:39+0800\n"
10+
"POT-Creation-Date:2023-09-30 00:03+0000\n"
1111
"PO-Revision-Date:2016-11-19 00:29+0000\n"
1212
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -655,8 +655,9 @@ msgstr ""
655655
msgid""
656656
"The three methods that return the ratio of matching to total characters can "
657657
"give different results due to differing levels of approximation, although :"
658-
"meth:`quick_ratio` and :meth:`real_quick_ratio` are always at least as large "
659-
"as :meth:`ratio`:"
658+
"meth:`~SequenceMatcher.quick_ratio` and :meth:`~SequenceMatcher."
659+
"real_quick_ratio` are always at least as large as :meth:`~SequenceMatcher."
660+
"ratio`:"
660661
msgstr""
661662

662663
#:../../library/difflib.rst:588
@@ -669,28 +670,29 @@ msgstr ""
669670

670671
#:../../library/difflib.rst:596
671672
msgid""
672-
":meth:`ratio` returns a float in [0, 1], measuring the similarity of the "
673-
"sequences. As a rule of thumb, a :meth:`ratio` value over 0.6 means the"
674-
"sequences are close matches:"
673+
":meth:`~SequenceMatcher.ratio` returns a float in [0, 1], measuring the "
674+
"similarity of thesequences. As a rule of thumb, a :meth:`~SequenceMatcher."
675+
"ratio` value over 0.6 means thesequences are close matches:"
675676
msgstr""
676677

677678
#:../../library/difflib.rst:603
678679
msgid""
679680
"If you're only interested in where the sequences match, :meth:"
680-
"`get_matching_blocks` is handy:"
681+
"`~SequenceMatcher.get_matching_blocks` is handy:"
681682
msgstr""
682683

683684
#:../../library/difflib.rst:612
684685
msgid""
685-
"Note that the last tuple returned by :meth:`get_matching_blocks` is always a "
686-
"dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last "
687-
"tuple element (number of elements matched) is ``0``."
686+
"Note that the last tuple returned by :meth:`~SequenceMatcher."
687+
"get_matching_blocks` is always a dummy, ``(len(a), len(b), 0)``, and this is "
688+
"the only case in which the last tuple element (number of elements matched) "
689+
"is ``0``."
688690
msgstr""
689691

690692
#:../../library/difflib.rst:616
691693
msgid""
692694
"If you want to know how to change the first sequence into the second, use :"
693-
"meth:`get_opcodes`:"
695+
"meth:`~SequenceMatcher.get_opcodes`:"
694696
msgstr""
695697

696698
#:../../library/difflib.rst:627
@@ -778,7 +780,7 @@ msgstr ""
778780
msgid""
779781
"This example compares two texts. First we set up the texts, sequences of "
780782
"individual single-line strings ending with newlines (such sequences can also "
781-
"be obtained from the :meth:`~io.BaseIO.readlines` method of file-like "
783+
"be obtained from the :meth:`~io.IOBase.readlines` method of file-like "
782784
"objects):"
783785
msgstr""
784786

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp