parameters: (self, host, path)
return_statement: return 'https://developer.chrome.com/' + posixpath.join(*path)
docstring: Redirect paths from the old code.google.com to the new
      developer.chrome.com, retaining elements like the channel and https, if
      used.
docstring_summary: Redirect paths from the old code.google.com to the new
      developer.chrome.com, retaining elements like the channel and https, if
      used.
docstring_tokens: Redirect paths from the old code . google . com to the new developer . chrome . com retaining elements like the channel and https if used .
function: def _RedirectOldHosts(self, host, path):
      ''' Redirect paths from the old code.google.com to the new
      developer.chrome.com, retaining elements like the channel and https, if
      used.
      '''
      if urlsplit(host).hostname != 'code.google.com':
        return None
  
      path = path.split('/')
      if path and path[0] == 'chrome':
        path.pop(0)
  
      return 'https://developer.chrome.com/' + posixpath.join(*path)
function_tokens: def _RedirectOldHosts ( self , host , path ) : if urlsplit ( host ) . hostname != 'code.google.com' : return None path = path . split ( '/' ) if path and path [ 0 ] == 'chrome' : path . pop ( 0 ) return 'https://developer.chrome.com/' + posixpath . join ( * path )