code: def isrelpath(self):
          
          return (self.scheme is None and self.authority is None and
                  not self.path.startswith(self.SLASH))
docs: Return :const:`True` if this is a relative-path reference.