@property<EOL><INDENT>def parent(self):<DEDENT>
path = '<STR_LIT:/>'.join(self.path.split('<STR_LIT:/>')[:-<NUM_LIT:1>])<EOL>s = path.strip('<STR_LIT:/>').split('<STR_LIT::>')<EOL>if len(s)==<NUM_LIT:2> and s[<NUM_LIT:1>]=='<STR_LIT>':<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return self.__class__(self, path=path)<EOL><DEDENT>
return the parent URL, with params, query, and fragment in place