diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 1998-08-25 19:45:24 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 1998-08-25 19:45:24 (GMT) |
commit | 4722da6ebf96cbe0e0699e935fecc717c04a4b42 (patch) | |
tree | 3f7dd52b7aba686878a6892c6053eb68b8a3608a /Lib/urlparse.py | |
parent | afd3daedded4f77f9803a3a486ca00f9fe363859 (diff) | |
download | cpython-4722da6ebf96cbe0e0699e935fecc717c04a4b42.zip cpython-4722da6ebf96cbe0e0699e935fecc717c04a4b42.tar.gz cpython-4722da6ebf96cbe0e0699e935fecc717c04a4b42.tar.bz2 |
fix typo in keyword argument 'allow_frament' should be 'allow_fragment'
Diffstat (limited to 'Lib/urlparse.py')
-rw-r--r-- | Lib/urlparse.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py index 185eb7f..5348c30 100644 --- a/Lib/urlparse.py +++ b/Lib/urlparse.py @@ -43,8 +43,8 @@ def clear_cache(): # Return a 6-tuple: (scheme, netloc, path, params, query, fragment). # Note that we don't break the components up in smaller bits # (e.g. netloc is a single string) and we don't expand % escapes. -def urlparse(url, scheme = '', allow_framents = 1): - key = url, scheme, allow_framents +def urlparse(url, scheme = '', allow_fragments = 1): + key = url, scheme, allow_fragments try: return _parse_cache[key] except KeyError: @@ -65,7 +65,7 @@ def urlparse(url, scheme = '', allow_framents = 1): if i < 0: i = len(url) netloc, url = url[2:i], url[i:] - if allow_framents and scheme in uses_fragment: + if allow_fragments and scheme in uses_fragment: i = string.rfind(url, '#') if i >= 0: url, fragment = url[:i], url[i+1:] @@ -101,13 +101,13 @@ def urlunparse((scheme, netloc, url, params, query, fragment)): # Join a base URL and a possibly relative URL to form an absolute # interpretation of the latter. -def urljoin(base, url, allow_framents = 1): +def urljoin(base, url, allow_fragments = 1): if not base: return url bscheme, bnetloc, bpath, bparams, bquery, bfragment = \ - urlparse(base, '', allow_framents) + urlparse(base, '', allow_fragments) scheme, netloc, path, params, query, fragment = \ - urlparse(url, bscheme, allow_framents) + urlparse(url, bscheme, allow_fragments) # XXX Unofficial hack: default netloc to bnetloc even if # schemes differ if scheme != bscheme and not netloc and \ |