How to use the qutebrowser.utils.utils.get_repr function in qutebrowser

To help you get started, we’ve selected a few qutebrowser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github qutebrowser / qutebrowser / tests / unit / utils / test_urlutils.py View on Github external
def __repr__(self):
        return utils.get_repr(self, used=self.used, answer=self.answer)
github qutebrowser / qutebrowser / qutebrowser / utils / urlmatch.py View on Github external
def __repr__(self) -> str:
        return utils.get_repr(self, pattern=self._pattern, constructor=True)
github qutebrowser / qutebrowser / qutebrowser / mainwindow / prompt.py View on Github external
def __repr__(self):
        return utils.get_repr(self, question=self.question, constructor=True)
github qutebrowser / qutebrowser / qutebrowser / browser / browsertab.py View on Github external
def __repr__(self) -> str:
        try:
            qurl = self.url()
            url = qurl.toDisplayString(QUrl.EncodeUnicode)  # type: ignore
        except (AttributeError, RuntimeError) as exc:
            url = '<{}>'.format(exc.__class__.__name__)
        else:
            url = utils.elide(url, 100)
        return utils.get_repr(self, tab_id=self.tab_id, url=url)
github qutebrowser / qutebrowser / qutebrowser / config / configutils.py View on Github external
def __repr__(self) -> str:
        return utils.get_repr(self, value=self.value, pattern=self.pattern,
                              pattern_id=self.pattern_id)
github qutebrowser / qutebrowser / qutebrowser / misc / sessions.py View on Github external
def __repr__(self):
        return utils.get_repr(self, constructor=True, url=self.url,
                              original_url=self.original_url, title=self.title,
                              active=self.active, user_data=self.user_data)