MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / split

Method split

suds/store.py:583–595  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 15

openMethod · 0.95
_wikify_oneFunction · 0.45
untabFunction · 0.45
init_tutorialsFunction · 0.45
_get_left_tagMethod · 0.45
runMethod · 0.45
convertMethod · 0.45
load_extensionFunction · 0.45
detabMethod · 0.45
looseDetabMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected