pylint: Add WORKAROUND to some comments.

This commit is contained in:
Florian Bruhin 2015-12-01 20:52:53 +01:00
parent b59951cc98
commit 31265b80b6
5 changed files with 5 additions and 5 deletions

View File

@ -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!")

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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')