Lines Matching refs:netloc

180         netloc = self.netloc
181 userinfo, have_info, hostinfo = netloc.rpartition('@')
192 netloc = self.netloc
193 _, _, hostinfo = netloc.rpartition('@')
210 netloc = self.netloc
211 userinfo, have_info, hostinfo = netloc.rpartition(b'@')
222 netloc = self.netloc
223 _, _, hostinfo = netloc.rpartition(b'@')
267 _SplitResultBase.netloc.__doc__ = """
293 _ParseResultBase.netloc.__doc__ = _SplitResultBase.netloc.__doc__
369 scheme, netloc, url, query, fragment = splitresult
374 result = ParseResult(scheme, netloc, url, params, query, fragment)
394 def _checknetloc(netloc): argument
395 if not netloc or netloc.isascii():
400 netloc2 = unicodedata.normalize('NFKC', netloc)
401 if netloc == netloc2:
403 _, _, netloc = netloc.rpartition('@') # anything to the left of '@' is okay
423 netloc = query = fragment = ''
429 netloc, url = _splitnetloc(url, 2)
430 if (('[' in netloc and ']' not in netloc) or
431 (']' in netloc and '[' not in netloc)):
437 _checknetloc(netloc)
438 v = SplitResult('http', netloc, url, query, fragment)
453 netloc, url = _splitnetloc(url, 2)
454 if (('[' in netloc and ']' not in netloc) or
455 (']' in netloc and '[' not in netloc)):
461 _checknetloc(netloc)
462 v = SplitResult(scheme, netloc, url, query, fragment)
471 scheme, netloc, url, params, query, fragment, _coerce_result = (
475 return _coerce_result(urlunsplit((scheme, netloc, url, query, fragment)))
483 scheme, netloc, url, query, fragment, _coerce_result = (
485 if netloc or (scheme and scheme in uses_netloc and url[:2] != '//'):
487 url = '//' + (netloc or '') + url
507 scheme, netloc, path, params, query, fragment = \
513 if netloc:
514 return _coerce_result(urlunparse((scheme, netloc, path,
516 netloc = bnetloc
523 return _coerce_result(urlunparse((scheme, netloc, path,
561 return _coerce_result(urlunparse((scheme, netloc, '/'.join(