Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33d9eb2

Browse files
[po] auto sync
1 parent f766d43 commit 33d9eb2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

library/urllib.parse.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,20 @@ msgid ""
608608
" contains either :class:`bytes` data (for :meth:`encode` methods) or "
609609
":class:`str` data (for :meth:`decode` methods)."
610610
msgstr ""
611+
"为了支持结果对象在 :class:`str` 和 :class:`bytes` 之间方便地转换,所有来自 URL 解析函数的返回值都会提供 "
612+
":meth:`encode` 方法 (当结果包含 :class:`str` 数据) 或 :meth:`decode` 方法 (当结果包含 "
613+
":class:`bytes` 数据)。 这些方法的签名与 :class:`str` 和 :class:`bytes` 的对应方法相匹配 "
614+
"(不同之处在于其默认编码格式是 ``'ascii'`` 而非 ``'utf-8'``)。 每个方法会输出包含相应类型的 :class:`bytes` "
615+
"数据 (对于 :meth:`encode` 方法) 或 :class:`str` 数据 (对于 :meth:`decode` 方法) 的值。"
611616

612617
#: ../../library/urllib.parse.rst:436
613618
msgid ""
614619
"Applications that need to operate on potentially improperly quoted URLs that"
615620
" may contain non-ASCII data will need to do their own decoding from bytes to"
616621
" characters before invoking the URL parsing methods."
617622
msgstr ""
623+
"对于某些需要在有可能不正确地转码的包含非 ASCII 数据的 URL 上进行操作的应用程序来说,在发起调用 URL "
624+
"解析方法之前必须自行将字节串解码为字符。"
618625

619626
#: ../../library/urllib.parse.rst:440
620627
msgid ""

0 commit comments

Comments
 (0)