summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/urlparse.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py
index 9fce0bd..ef2384b 100644
--- a/Lib/urlparse.py
+++ b/Lib/urlparse.py
@@ -68,6 +68,7 @@ def urlparse(url, scheme = '', allow_framents = 1):
# states that these are equivalent).
def urlunparse((scheme, netloc, url, params, query, fragment)):
if netloc:
+ if url[:1] != '/': url = '/' + url
url = '//' + netloc + url
if scheme:
url = scheme + ':' + url
@@ -118,9 +119,8 @@ def urljoin(base, url, allow_framents = 1):
return urlunparse((scheme, netloc, path,
params, query, fragment))
i = string.rfind(bpath, '/')
- if i < 0:
- i = len(bpath)
- path = bpath[:i] + '/' + path
+ if i >= 0:
+ path = bpath[:i] + '/' + path
segments = string.splitfields(path, '/')
if segments[-1] == '.':
segments[-1] = ''
ue='shell_script'>shell_script Mirror from: https://github.com/HDFGroup/hdf5.git
summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-06-23 14:58:51 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-06-23 14:58:51 (GMT)
commit0350710f5baa5177674289e06737c99cb201ecc5 (patch)
treee65477839074f28274a59d183b46c94d9113f145 /configure
parent941cf3a13402fb83f2d87e46e08adea3367608ca (diff)
downloadhdf5-0350710f5baa5177674289e06737c99cb201ecc5.zip
hdf5-0350710f5baa5177674289e06737c99cb201ecc5.tar.gz
hdf5-0350710f5baa5177674289e06737c99cb201ecc5.tar.bz2
[svn-r1370]
added a new line before a bracket was pritned in the enum stuff