parameters: (path)
return_statement: return expanded
docstring: Expand ~ and ~user constructions.
  
      Includes a workaround for https://bugs.python.org/issue14768
docstring_summary: Expand ~ and ~user constructions.
docstring_tokens: Expand ~ and ~user constructions .
function: def expanduser(path):
      # type: (str) -> str
      """
      Expand ~ and ~user constructions.
  
      Includes a workaround for https://bugs.python.org/issue14768
      """
      expanded = os.path.expanduser(path)
      if path.startswith('~/') and expanded.startswith('//'):
          expanded = expanded[1:]
      return expanded
function_tokens: def expanduser ( path ) : # type: (str) -> str expanded = os . path . expanduser ( path ) if path . startswith ( '~/' ) and expanded . startswith ( '//' ) : expanded = expanded [ 1 : ] return expanded