This commit is contained in:
Florian Bruhin 2017-05-17 14:29:17 +02:00
parent 6473d64e40
commit 608ac89f06
4 changed files with 13 additions and 3 deletions

View File

@ -17,6 +17,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
# We get various "abstract but not overridden" warnings
# pylint: disable=abstract-method
"""Bridge from QWebEngineSettings to our own settings. """Bridge from QWebEngineSettings to our own settings.
Module attributes: Module attributes:

View File

@ -17,6 +17,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
# We get various "abstract but not overridden" warnings
# pylint: disable=abstract-method
"""Bridge from QWebSettings to our own settings. """Bridge from QWebSettings to our own settings.
Module attributes: Module attributes:

View File

@ -17,6 +17,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
# We get various "abstract but not overridden" warnings
# pylint: disable=abstract-method
"""Bridge from QWeb(Engine)Settings to our own settings.""" """Bridge from QWeb(Engine)Settings to our own settings."""
from qutebrowser.config import config from qutebrowser.config import config
@ -49,8 +52,8 @@ class Base:
the global instance. the global instance.
Return: Return:
A list of QWeb(Engine)Settings objects. The first one should be used A list of QWeb(Engine)Settings objects. The first one should be
for reading. used for reading.
""" """
if settings is None: if settings is None:
return self._get_global_settings() return self._get_global_settings()

View File

@ -162,7 +162,8 @@ def run(files):
def main(): def main():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('files', nargs='*', default=['qutebrowser', 'scripts']) parser.add_argument('files', nargs='*', default=['qutebrowser', 'scripts',
'setup.py'])
args = parser.parse_args() args = parser.parse_args()
out = run(args.files) out = run(args.files)
for line in out: for line in out: