From b8c70e5986d82da758651c166a725f112383afeb Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 16 Jul 2018 22:35:40 +0200 Subject: [PATCH] Rewrite type comments again --- qutebrowser/browser/webkit/mhtml.py | 6 +++--- qutebrowser/misc/sql.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qutebrowser/browser/webkit/mhtml.py b/qutebrowser/browser/webkit/mhtml.py index b59148d43..9339df9ce 100644 --- a/qutebrowser/browser/webkit/mhtml.py +++ b/qutebrowser/browser/webkit/mhtml.py @@ -312,9 +312,9 @@ class _Downloader: for style in styles: style = webkitelem.WebKitElement(style, tab=self.tab) # The Mozilla Developer Network says: - # type - This attribute defines the styling language as a MIME type - # (charset should not be specified). This attribute is optional and - # default to text/css if it's missing. + # > type: This attribute defines the styling language as a MIME + # > type (charset should not be specified). This attribute is + # > optional and default to text/css if it's missing. # https://developer.mozilla.org/en/docs/Web/HTML/Element/style if 'type' in style and style['type'] != 'text/css': continue diff --git a/qutebrowser/misc/sql.py b/qutebrowser/misc/sql.py index 54c142313..bf47bea5a 100644 --- a/qutebrowser/misc/sql.py +++ b/qutebrowser/misc/sql.py @@ -74,10 +74,10 @@ class SqliteError(SqlError): '13', # SQLITE_FULL ] # At least in init(), we can get errors like this: - # type - ConnectionError - # database text: out of memory - # driver text: Error opening database - # error code: -1 + # > type: ConnectionError + # > database text: out of memory + # > driver text: Error opening database + # > error code: -1 environmental_strings = [ "out of memory", ]