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
461461 * On non-Windows platforms, :func: `~urllib.request.pathname2url ` generates
462462 URIs that begin with three slashes (rather than one) when given an
463463 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 ``.
465465 * On non-Windows platforms, :func: `~urllib.request.url2pathname ` raises
466466 :exc: `urllib.error.URLError ` if the URI includes a non-local authority,
467467 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):
15341534 # Long drive letter
15351535 self .assertEqual (fn ("XX:\\ " ), "XX%3A/" )
15361536 # No drive letter
1537- self .assertEqual (fn ("\\ folder\\ test\\ " ), '/folder/test/' )
1537+ self .assertEqual (fn ("\\ folder\\ test\\ " ), '/// folder/test/' )
15381538 self .assertEqual (fn ("\\ \\ folder\\ test\\ " ), '//folder/test/' )
15391539 self .assertEqual (fn ("\\ \\ \\ folder\\ test\\ " ), '///folder/test/' )
15401540 self .assertEqual (fn ('\\ \\ some\\ share\\ ' ), '//some/share/' )
You can’t perform that action at this time.
0 commit comments