Remove old pylint disable comments

This commit is contained in:
Florian Bruhin 2018-08-06 19:55:27 +02:00
parent aac0031ba7
commit b617f1e03c
3 changed files with 5 additions and 5 deletions

View File

@ -1090,10 +1090,10 @@ class WebEngineTab(browsertab.AbstractTab):
# percent encoded content is 2 megabytes minus 30 bytes.
self._widget.setHtml(html, base_url)
def networkaccessmanager(self): # pylint: disable=useless-return
def networkaccessmanager(self):
return None
def user_agent(self): # pylint: disable=useless-return
def user_agent(self):
return None
def clear_ssl_errors(self):

View File

@ -576,7 +576,7 @@ def read_autoconfig():
"""Read the autoconfig.yml file."""
try:
config.instance.read_yaml()
except configexc.ConfigFileErrors: # pylint: disable=try-except-raise
except configexc.ConfigFileErrors:
raise # caught in outer block
except configexc.Error as e:
desc = configexc.ConfigErrorDesc("Error", e)

View File

@ -246,7 +246,7 @@ class WrapperLayout(QLayout):
def sizeHint(self):
return self._widget.sizeHint()
def itemAt(self, _index): # pylint: disable=useless-return
def itemAt(self, _index):
return None
def takeAt(self, _index):
@ -287,7 +287,7 @@ class PseudoLayout(QLayout):
def count(self):
return 0
def itemAt(self, _pos): # pylint: disable=useless-return
def itemAt(self, _pos):
return None
def widget(self):