summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2017-08-18 20:07:09 +0200
committerLucas Hoffmann <l-m-h@web.de>2017-08-20 02:33:00 +0200
commitd8f1fc89cb1b357de970e2889494199749cffc1f (patch)
tree5cfe88a7ef62115687dcbc23b5035cd30996e138 /alot
parentcecaeed5af047dacec24ba74fd0b9006d2b9e5e0 (diff)
py3k: Use logging.warning instead of warn
The short version is deprecated as of python3. Both are available in both python versions.
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/globals.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index 5f9faa3d..61aa4f51 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -863,7 +863,7 @@ class ComposeCommand(Command):
self.envelope.sign_key = account.gpg_key
else:
msg = 'Cannot find gpg key for account {}'.format(account.address)
- logging.warn(msg)
+ logging.warning(msg)
ui.notify(msg, priority='error')
# get missing To header