Make keyword arguments work for MessageModule stub.
This commit is contained in:
parent
33ad0ab1fc
commit
1956158096
@ -258,14 +258,16 @@ class MessageModule:
|
||||
|
||||
"""A drop-in replacement for qutebrowser.utils.message."""
|
||||
|
||||
def error(self, _win_id, message, _immediately=False):
|
||||
# pylint: disable=unused-argument
|
||||
|
||||
def error(self, _win_id, message, immediately=False):
|
||||
"""Log an error to the message logger."""
|
||||
logging.getLogger('message').error(message)
|
||||
|
||||
def warning(self, _win_id, message, _immediately=False):
|
||||
def warning(self, _win_id, message, immediately=False):
|
||||
"""Log a warning to the message logger."""
|
||||
logging.getLogger('message').warning(message)
|
||||
|
||||
def info(self, _win_id, message, _immediately=True):
|
||||
def info(self, _win_id, message, immediately=True):
|
||||
"""Log an info message to the message logger."""
|
||||
logging.getLogger('message').info(message)
|
||||
|
Loading…
Reference in New Issue
Block a user