Use loggings.warning instead of warn
This commit is contained in:
parent
8ac215fa52
commit
c76819a8b0
@ -328,7 +328,7 @@ class BaseKeyParser(QObject):
|
||||
self.special_bindings = {}
|
||||
sect = config.section(sectname)
|
||||
if not sect.items():
|
||||
logging.warn("No keybindings defined!")
|
||||
logging.warning("No keybindings defined!")
|
||||
for (key, cmd) in sect.items():
|
||||
if not cmd:
|
||||
continue
|
||||
@ -341,8 +341,8 @@ class BaseKeyParser(QObject):
|
||||
logging.debug("registered key: {} -> {}".format(key, cmd))
|
||||
self.bindings[key] = cmd
|
||||
else:
|
||||
logging.warn(
|
||||
"Ignoring keychain '{}' in section '{}' because "
|
||||
logging.warning(
|
||||
"Ignoring keychain '{}' in section '{}\" because "
|
||||
"keychains are not supported there.".format(key, sectname))
|
||||
|
||||
def execute(self, cmdstr, keytype, count=None):
|
||||
|
@ -296,8 +296,8 @@ class WebView(QWebView):
|
||||
The new QWebView object.
|
||||
"""
|
||||
if wintype == QWebPage.WebModalDialog:
|
||||
logging.warn("WebModalDialog requested, but we don't support "
|
||||
"that!")
|
||||
logging.warning("WebModalDialog requested, but we don't support "
|
||||
"that!")
|
||||
if config.get('general', 'window-open-behaviour') == 'new-tab':
|
||||
return self.tabbedbrowser.tabopen()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user