@@ -158,16 +158,16 @@ The :mod:`urllib.request` module defines the following functions:
158158 >>> 'file:' + pathname2url(path)
159159 'file:///C:/Program%20Files'
160160
161- .. versionchanged :: 3.14
162- Paths beginning with a slash are converted to URLs with authority
163- sections. For example, the path ``/etc/hosts `` is converted to
164- the URL ``///etc/hosts ``.
165-
166161 .. versionchanged :: 3.14
167162 Windows drive letters are no longer converted to uppercase, and ``: ``
168163 characters not following a drive letter no longer cause an
169164 :exc: `OSError ` exception to be raised on Windows.
170165
166+ .. versionchanged :: 3.14
167+ Paths beginning with a slash are converted to URLs with authority
168+ sections. For example, the path ``/etc/hosts `` is converted to
169+ the URL ``///etc/hosts ``.
170+
171171
172172.. function :: url2pathname(url)
173173
@@ -181,17 +181,17 @@ The :mod:`urllib.request` module defines the following functions:
181181 >>> url2pathname(url.removeprefix('file:'))
182182 'C:\\Program Files'
183183
184+ .. versionchanged :: 3.14
185+ Windows drive letters are no longer converted to uppercase, and ``: ``
186+ characters not following a drive letter no longer cause an
187+ :exc: `OSError ` exception to be raised on Windows.
188+
184189 .. versionchanged :: next
185190 If a URL authority (e.g. a hostname) is present and resolves to a local
186191 address, it is discarded. If an authority is present and *doesn't *
187192 resolve to a local address, then on Windows a UNC path is returned (as
188193 before), and on other platforms :exc: `~urllib.error.URLError ` is raised.
189194
190- .. versionchanged :: 3.14
191- Windows drive letters are no longer converted to uppercase, and ``: ``
192- characters not following a drive letter no longer cause an
193- :exc: `OSError ` exception to be raised on Windows.
194-
195195
196196.. function :: getproxies()
197197
0 commit comments