Split the url into I{protocol} and I{location} @param url: A URL. @param url: str @return: (I{url}, I{location}) @rtype: tuple
(self, url)
| 581 | raise Exception(reason) |
| 582 | |
| 583 | def split(self, url): |
| 584 | """ |
| 585 | Split the url into I{protocol} and I{location} |
| 586 | @param url: A URL. |
| 587 | @param url: str |
| 588 | @return: (I{url}, I{location}) |
| 589 | @rtype: tuple |
| 590 | """ |
| 591 | parts = url.split('://', 1) |
| 592 | if len(parts) == 2: |
| 593 | return parts |
| 594 | else: |
| 595 | return (None, url) |
no outgoing calls
no test coverage detected