Use loggings.warning instead of warn

This commit is contained in:
Florian Bruhin 2014-05-12 17:39:17 +02:00
parent 8ac215fa52
commit c76819a8b0
2 changed files with 5 additions and 5 deletions

View File

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

View File

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