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

Skip to content

Commit eafa972

Browse files
[po] auto sync
1 parent 340e9e0 commit eafa972

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

library/urllib.request.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ msgid ""
160160
":class:`ProxyHandler` is default installed and makes sure the requests are "
161161
"handled through the proxy."
162162
msgstr ""
163+
"此外,如果检测到设置了代理(比如设置了 :envvar:`http_proxy` 之类的环境变量),默认会安装 "
164+
":class:`ProxyHandler` 并确保通过代理处理请求。"
163165

164166
#: ../../library/urllib.request.rst:84
165167
msgid ""
@@ -169,19 +171,27 @@ msgid ""
169171
" parameter to ``urllib.urlopen``, can be obtained by using "
170172
":class:`ProxyHandler` objects."
171173
msgstr ""
174+
"Python 2.6 以下版本中留存的 ``urllib.urlopen`` 函数已停止使用了; "
175+
":func:`urllib.request.urlopen` 对应于传统的 ``urllib2.urlopen`` "
176+
"。对代理服务的处理是通过将字典参数传给 ``urllib.urlopen`` 来完成的,可以用 :class:`ProxyHandler` "
177+
"对象获取到代理处理函数。 "
172178

173179
#: ../../library/urllib.request.rst:90
174180
msgid ""
175181
"Raises an :ref:`auditing event <auditing>` ``urllib.Request`` with arguments"
176182
" ``fullurl``, ``data``, ``headers``, ``method``."
177183
msgstr ""
184+
"默认会触发一条 :ref:`审计事件 <auditing>` ``urllib.Request`` ,参数 ``fullurl`` 、 ``data``"
185+
" 、``headers`` 、``method`` 均取自请求对象。"
178186

179187
#: ../../library/urllib.request.rst:92
180188
msgid ""
181189
"The default opener raises an :ref:`auditing event <auditing>` "
182190
"``urllib.Request`` with arguments ``fullurl``, ``data``, ``headers``, "
183191
"``method`` taken from the request object."
184192
msgstr ""
193+
"默认会触发一条 :ref:`审计事件 <auditing> ` ``urllib.Request`` ,参数 ``fullurl`` 、``data``"
194+
" 、``headers`` 、``method`` 均取自请求对象。"
185195

186196
#: ../../library/urllib.request.rst:96
187197
msgid "*cafile* and *capath* were added."

0 commit comments

Comments
 (0)