parameters: (path)
return_statement: return path[0:first_sep]
docstring: Return the root of a path, i.e. the first path component.
    We allow / as an alternative path separator on Windows because it helps with
    testing and forward slashes are common even on Windows in portable codebases.
docstring_summary: Return the root of a path, i.e. the first path component.
    We allow / as an alternative path separator on Windows because it helps with
    testing and forward slashes are common even on Windows in portable codebases.
docstring_tokens: Return the root of a path i . e . the first path component . We allow / as an alternative path separator on Windows because it helps with testing and forward slashes are common even on Windows in portable codebases .
function: def _GetPathRoot(path):
    """ Return the root of a path, i.e. the first path component.
    We allow / as an alternative path separator on Windows because it helps with
    testing and forward slashes are common even on Windows in portable codebases.
    """
    first_sep = path.find(os.path.sep)
    if os.path.sep != '/' and first_sep == -1:
      first_sep = path.find('/')
  
    if first_sep == -1:
      return None
  
    return path[0:first_sep]
function_tokens: def _GetPathRoot ( path ) : first_sep = path . find ( os . path . sep ) if os . path . sep != '/' and first_sep == - 1 : first_sep = path . find ( '/' ) if first_sep == - 1 : return None return path [ 0 : first_sep ]