Skip to content

Commit 92d10d2

Browse files
Remove logic stripping URL components not suffixed with /
Discussed further in PR
1 parent 8a00c9a commit 92d10d2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Lib/urllib/parse.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,6 @@ def urljoin(base, url, allow_fragments=True):
611611
query, fragment))
612612

613613
base_parts = bpath.split('/')
614-
if base_parts[-1] != '':
615-
# the last item is not a directory, so will not be taken into account
616-
# in resolving the relative path
617-
del base_parts[-1]
618614

619615
# for rfc3986, ignore all base path should the first character be root.
620616
if path[:1] == '/':

0 commit comments

Comments
 (0)