File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,11 @@ The :mod:`urllib.request` module defines the following functions:
169
169
Convert the percent-encoded *url * to a local pathname.
170
170
171
171
.. versionchanged :: 3.14
172
- Supports :rfc: `8089 `-compliant file URLs. Raises :exc: `URLError ` if a
173
- scheme other than ``file: `` is used. If the URL uses a non-local
174
- authority, then on Windows a UNC path is returned, and on other
175
- platforms a :exc: `URLError ` exception is raised.
172
+ Supports :rfc: `8089 `-compliant file URLs. Raises
173
+ :exc: `~urllib.error.URLError ` if a scheme other than ``file: `` is used.
174
+ If the URL uses a non-local authority, then on Windows a UNC path is
175
+ returned, and on other platforms a :exc: `~urllib.error.URLError `
176
+ exception is raised.
176
177
177
178
178
179
.. function :: getproxies()
Original file line number Diff line number Diff line change @@ -824,7 +824,7 @@ def test_file(self):
824
824
"file://localhost%s" % urlpath ,
825
825
"file://%s" % urlpath ,
826
826
]
827
- if os .name = = 'nt' :
827
+ if os .name ! = 'nt' :
828
828
urls .append ("file://%s%s" % (socket .gethostbyname ('localhost' ), urlpath ))
829
829
try :
830
830
localaddr = socket .gethostbyname (socket .gethostname ())
You can’t perform that action at this time.
0 commit comments