def __repr__(self):
        """
        The L{repr} of a L{URLPath} is an eval-able expression which will
        construct a similar L{URLPath}.
        """
        return ('URLPath(scheme=%r, netloc=%r, path=%r, query=%r, fragment=%r)'
                % (self.scheme, self.netloc, self.path, self.query,
                   self.fragment))

        The L{repr} of a L{URLPath} is an eval-able expression which will
        construct a similar L{URLPath}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/urlpath.py