summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2016-12-14 10:49:54 -0800
committerGitHub <noreply@github.com>2016-12-14 10:49:54 -0800
commitfdb2d7103877185b6865e872cb06e7bdd237f9dc (patch)
tree24aee06dc0c7f46400291575f888e588fa48f0c0 /alot/commands/globals.py
parent24a51c4e49f139b5e12eb369e829dd1c5646aba7 (diff)
parentf0fb96fd02a222c747e60ce7b82a08f7fa0c18a0 (diff)
Merge pull request #920 from lucc/pylint
Small fixes found with pylint
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index af9eb7f9..7d5c1d3e 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -851,19 +851,18 @@ class ComposeCommand(Command):
# set encryption if needed
if self.encrypt or account.encrypt_by_default == u"all":
- logging.debug("Trying to encrypt message because encrypt={} and "
- "encrypt_by_default={}".format(
- self.encrypt, account.encrypt_by_default))
+ logging.debug("Trying to encrypt message because encrypt=%s and "
+ "encrypt_by_default=%s", self.encrypt,
+ account.encrypt_by_default)
yield self._set_encrypt(ui, self.envelope)
elif account.encrypt_by_default == u"trusted":
logging.debug("Trying to encrypt message because "
- "account.encrypt_by_default={}".format(
- account.encrypt_by_default))
+ "account.encrypt_by_default=%s",
+ account.encrypt_by_default)
yield self._set_encrypt(ui, self.envelope, trusted_only=True)
else:
- logging.debug(
- "No encryption by default, encrypt_by_default={}".format(
- account.encrypt_by_default))
+ logging.debug("No encryption by default, encrypt_by_default=%s",
+ account.encrypt_by_default)
cmd = commands.envelope.EditCommand(envelope=self.envelope,
spawn=self.force_spawn,