diff options
-rw-r--r-- | Lib/urllib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index 3175199..53005c8 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -863,6 +863,8 @@ def basejoin(base, url): basepath = '' path = basepath + path + if host and path and path[0] != '/': + path = '/' + path if type and host: return type + '://' + host + path elif type: return type + ':' + path elif host: return '//' + host + path # don't know what this means |