@@ -153,6 +153,8 @@ msgid ""
153153":class:`URLopener` and :class:`FancyURLopener` classes, this function "
154154"returns a :class:`urllib.response.addinfourl` object."
155155msgstr ""
156+ "对于 FTP、文件、数据的URL,以及由传统的 :class:`URLopener` 和 :class:`FancyURLopener` "
157+ "类处理的请求,本函数将返回一个 :class:`urllib.response.addinfourl` 对象。"
156158
157159#: ../../library/urllib.request.rst:81
158160msgid "Raises :exc:`~urllib.error.URLError` on protocol errors."
@@ -164,6 +166,8 @@ msgid ""
164166" the default installed global :class:`OpenerDirector` uses "
165167":class:`UnknownHandler` to ensure this never happens)."
166168msgstr ""
169+ "请注意,如果没有处理函数对请求进行处理,则有可能会返回 ``None`` 。尽管默认安装的全局 :class:`OpenerDirector` 会用 "
170+ ":class:`UnknownHandler` 来确保不会发生这种情况。"
167171
168172#: ../../library/urllib.request.rst:87
169173msgid ""
@@ -172,6 +176,8 @@ msgid ""
172176":class:`ProxyHandler` is default installed and makes sure the requests are "
173177"handled through the proxy."
174178msgstr ""
179+ "此外,如果检测到设置了代理(比如设置了 :envvar:`http_proxy` 之类的环境变量),默认会安装 "
180+ ":class:`ProxyHandler` 并确保通过代理处理请求。"
175181
176182#: ../../library/urllib.request.rst:92
177183msgid ""
@@ -181,6 +187,10 @@ msgid ""
181187" parameter to ``urllib.urlopen``, can be obtained by using "
182188":class:`ProxyHandler` objects."
183189msgstr ""
190+ "Python 2.6 以下版本中留存的 ``urllib.urlopen`` 函数已停止使用了; "
191+ ":func:`urllib.request.urlopen` 对应于传统的 ``urllib2.urlopen`` "
192+ "。对代理服务的处理是通过将字典参数传给 ``urllib.urlopen`` 来完成的,可以用 :class:`ProxyHandler` "
193+ "对象获取到代理处理函数。 "
184194
185195#: ../../library/urllib.request.rst:98
186196msgid "*cafile* and *capath* were added."
0 commit comments