@property<EOL><INDENT>def parent(self):<DEDENT>
drv = self._drv<EOL>root = self._root<EOL>parts = self._parts<EOL>if len(parts) == <NUM_LIT:1> and (drv or root):<EOL><INDENT>return self<EOL><DEDENT>return self._from_parsed_parts(drv, root, parts[:-<NUM_LIT:1>])<EOL>
The logical parent of the path.