Commit 8da2a52d authored by Brett Cannon's avatar Brett Cannon

See rev. 1.42 for log message

parent 82860df4
......@@ -157,13 +157,9 @@ def urljoin(base, url, allow_fragments = 1):
if path[:1] == '/':
return urlunparse((scheme, netloc, path,
params, query, fragment))
if not path:
if not params:
params = bparams
if not query:
query = bquery
if not (path or params or query):
return urlunparse((scheme, netloc, bpath,
params, query, fragment))
bparams, bquery, fragment))
segments = bpath.split('/')[:-1] + path.split('/')
# XXX The stuff below is bogus in various ways...
if segments[-1] == '.':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment