File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,10 +169,11 @@ The :mod:`urllib.request` module defines the following functions:
169169 Convert the percent-encoded *url * to a local pathname.
170170
171171 .. 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.
176177
177178
178179.. function :: getproxies()
Original file line number Diff line number Diff line change @@ -824,7 +824,7 @@ def test_file(self):
824824 "file://localhost%s" % urlpath ,
825825 "file://%s" % urlpath ,
826826 ]
827- if os .name = = 'nt' :
827+ if os .name ! = 'nt' :
828828 urls .append ("file://%s%s" % (socket .gethostbyname ('localhost' ), urlpath ))
829829 try :
830830 localaddr = socket .gethostbyname (socket .gethostname ())
You can’t perform that action at this time.
0 commit comments