summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1995-11-10 10:36:07 +0000
committerSjoerd Mullender <sjoerd@acm.org>1995-11-10 10:36:07 +0000
commite0371b8415650748f0e0718ff5160e286abaf753 (patch)
treef0ae74e6487af277bc57c21f214848b614cf4702 /Python
parent17914f4e17d57497d206f2795e871a5f6e0a5917 (diff)
downloadcpython-git-e0371b8415650748f0e0718ff5160e286abaf753.tar.gz
Fixed basejoin. There were two main problems:
- basejoin('some/url', '#name') would strip the last component of some/url and resturn some/#name. - basejoin('file.html', 'relative/path') would return something like file:/relative/path, making a relative path into an absolute one. These bugs are fixed by some drastic changes. No scheme is added when none is present (i.e. it works as replacement for posix.joinpath). If a scheme is present in the second argument, it is returned unprocessed. No hostname are added in this case. If no scheme is present, the scheme of the first argument, if present, is used. The algorithm is commented profusely. Also fixed a typo in a comment.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions