pylint: Add WORKAROUND to some comments.
This commit is contained in:
parent
b59951cc98
commit
31265b80b6
@ -1190,7 +1190,7 @@ class CommandDispatcher:
|
||||
def view_source(self):
|
||||
"""Show the source of the current page."""
|
||||
# pylint: disable=no-member
|
||||
# https://bitbucket.org/logilab/pylint/issue/491/
|
||||
# WORKAROUND for https://bitbucket.org/logilab/pylint/issue/491/
|
||||
widget = self._current_widget()
|
||||
if widget.viewing_source:
|
||||
raise cmdexc.CommandError("Already viewing source!")
|
||||
|
@ -72,7 +72,7 @@ def dirbrowser_html(path):
|
||||
title = "Browse directory: {}".format(path)
|
||||
template = jinja.env.get_template('dirbrowser.html')
|
||||
# pylint: disable=no-member
|
||||
# https://bitbucket.org/logilab/pylint/issue/490/
|
||||
# WORKAROUND for https://bitbucket.org/logilab/pylint/issue/490/
|
||||
|
||||
if is_root(path):
|
||||
parent = None
|
||||
|
@ -21,7 +21,7 @@
|
||||
# up for this whole module.
|
||||
|
||||
# pylint: disable=no-member
|
||||
# https://bitbucket.org/logilab/pylint/issue/490/
|
||||
# WORKAROUND for https://bitbucket.org/logilab/pylint/issue/490/
|
||||
|
||||
"""Handler functions for different qute:... pages.
|
||||
|
||||
|
@ -286,7 +286,7 @@ def normalize_ws(text):
|
||||
|
||||
def parse_headers(content_disposition):
|
||||
"""Build a _ContentDisposition from header values."""
|
||||
# https://bitbucket.org/logilab/pylint/issue/492/
|
||||
# WORKAROUND for https://bitbucket.org/logilab/pylint/issue/492/
|
||||
# pylint: disable=no-member
|
||||
|
||||
# We allow non-ascii here (it will only be parsed inside of qdtext, and
|
||||
|
@ -168,7 +168,7 @@ class BrowserPage(QWebPage):
|
||||
title = "Error loading page: {}".format(urlstr)
|
||||
template = jinja.env.get_template('error.html')
|
||||
# pylint: disable=no-member
|
||||
# https://bitbucket.org/logilab/pylint/issue/490/
|
||||
# WORKAROUND for https://bitbucket.org/logilab/pylint/issue/490/
|
||||
html = template.render(
|
||||
title=title, url=urlstr, error=error_str, icon='')
|
||||
errpage.content = html.encode('utf-8')
|
||||
|
Loading…
Reference in New Issue
Block a user