File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ urllib.request
461
461
* On non-Windows platforms, :func: `~urllib.request.pathname2url ` generates
462
462
URIs that begin with three slashes (rather than one) when given an
463
463
absolute path. :func: `~urllib.request.url2pathname ` performs the opposite
464
- transformation, so ``file:///etc/hosts` becomes ``/etc/hosts ``.
464
+ transformation, so ``file:///etc/hosts `` becomes ``/etc/hosts ``.
465
465
* On non-Windows platforms, :func: `~urllib.request.url2pathname ` raises
466
466
:exc: `urllib.error.URLError ` if the URI includes a non-local authority,
467
467
like ``file://other-machine/etc/hosts ``.
Original file line number Diff line number Diff line change @@ -1534,7 +1534,7 @@ def test_pathname2url_win(self):
1534
1534
# Long drive letter
1535
1535
self .assertEqual (fn ("XX:\\ " ), "XX%3A/" )
1536
1536
# No drive letter
1537
- self .assertEqual (fn ("\\ folder\\ test\\ " ), '/folder/test/' )
1537
+ self .assertEqual (fn ("\\ folder\\ test\\ " ), '/// folder/test/' )
1538
1538
self .assertEqual (fn ("\\ \\ folder\\ test\\ " ), '//folder/test/' )
1539
1539
self .assertEqual (fn ("\\ \\ \\ folder\\ test\\ " ), '///folder/test/' )
1540
1540
self .assertEqual (fn ('\\ \\ some\\ share\\ ' ), '//some/share/' )
You can’t perform that action at this time.
0 commit comments