Rewrite pseudo "type:" comments for pylint 2.0

See https://github.com/PyCQA/pylint/issues/2299
This commit is contained in:
Florian Bruhin 2018-07-16 14:15:00 +02:00
parent 570fe3ed1a
commit b1d508a3af
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ 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
# 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

View File

@ -74,7 +74,7 @@ class SqliteError(SqlError):
'13', # SQLITE_FULL
]
# At least in init(), we can get errors like this:
# type: ConnectionError
# type - ConnectionError
# database text: out of memory
# driver text: Error opening database
# error code: -1