- path, tag = urllib.splittag(path)
- path, query = urllib.splitquery(path)
- path = urllib.unquote(path)
- if tag: tag = urllib.unquote_plus(tag)
-
- if host: # host can be None for Mozilla's place: URLs
- host = host.decode(parser_charset or 'utf-8').encode('idna')