def expanduser(self):
if (not (self._drv or self._root)<EOL>and self._parts and self._parts[<NUM_LIT:0>][:<NUM_LIT:1>] == '<STR_LIT>'):<EOL><INDENT>homedir = self._flavour.gethomedir(self._parts[<NUM_LIT:0>][<NUM_LIT:1>:])<EOL>return self._from_parts([homedir] + self._parts[<NUM_LIT:1>:])<EOL><DEDENT>return self<EOL>
Return a new path with expanded ~ and ~user constructs
        (as returned by os.path.expanduser)