(url, allow_none=False)
| 405 | return (scheme, netloc, url, params, query, fragment) |
| 406 | |
| 407 | def _splitparams(url, allow_none=False): |
| 408 | if '/' in url: |
| 409 | i = url.find(';', url.rfind('/')) |
| 410 | if i < 0: |
| 411 | return url, None if allow_none else '' |
| 412 | else: |
| 413 | i = url.find(';') |
| 414 | return url[:i], url[i+1:] |
| 415 | |
| 416 | def _splitnetloc(url, start=0): |
| 417 | delim = len(url) # position of end of domain part of url, default is end |