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 = {} self.special_bindings = {}
sect = config.section(sectname) sect = config.section(sectname)
if not sect.items(): if not sect.items():
logging.warn("No keybindings defined!") logging.warning("No keybindings defined!")
for (key, cmd) in sect.items(): for (key, cmd) in sect.items():
if not cmd: if not cmd:
continue continue
@ -341,8 +341,8 @@ class BaseKeyParser(QObject):
logging.debug("registered key: {} -> {}".format(key, cmd)) logging.debug("registered key: {} -> {}".format(key, cmd))
self.bindings[key] = cmd self.bindings[key] = cmd
else: else:
logging.warn( logging.warning(
"Ignoring keychain '{}' in section '{}' because " "Ignoring keychain '{}' in section '{}\" because "
"keychains are not supported there.".format(key, sectname)) "keychains are not supported there.".format(key, sectname))
def execute(self, cmdstr, keytype, count=None): def execute(self, cmdstr, keytype, count=None):

View File

@ -296,7 +296,7 @@ class WebView(QWebView):
The new QWebView object. The new QWebView object.
""" """
if wintype == QWebPage.WebModalDialog: if wintype == QWebPage.WebModalDialog:
logging.warn("WebModalDialog requested, but we don't support " logging.warning("WebModalDialog requested, but we don't support "
"that!") "that!")
if config.get('general', 'window-open-behaviour') == 'new-tab': if config.get('general', 'window-open-behaviour') == 'new-tab':
return self.tabbedbrowser.tabopen() return self.tabbedbrowser.tabopen()