diff options
Diffstat (limited to 'alot')
-rw-r--r-- | alot/addressbook/abook.py | 2 | ||||
-rw-r--r-- | alot/commands/envelope.py | 4 | ||||
-rw-r--r-- | alot/db/envelope.py | 4 | ||||
-rw-r--r-- | alot/db/message.py | 2 | ||||
-rw-r--r-- | alot/settings/manager.py | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/alot/addressbook/abook.py b/alot/addressbook/abook.py index ec706eb3..4110306e 100644 --- a/alot/addressbook/abook.py +++ b/alot/addressbook/abook.py @@ -19,7 +19,7 @@ class AbookAddressBook(AddressBook): self._spec = os.path.join(DEFAULTSPATH, 'abook_contacts.spec') path = os.path.expanduser(path) self._config = read_config(path, self._spec) - del(self._config['format']) + del self._config['format'] def get_contacts(self): c = self._config diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index c8362037..e14d2f55 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -414,7 +414,7 @@ class SetCommand(Command): envelope = ui.current_buffer.envelope if self.reset: if self.key in envelope: - del(envelope[self.key]) + del envelope[self.key] envelope.add(self.key, self.value) ui.current_buffer.rebuild() @@ -432,7 +432,7 @@ class UnsetCommand(Command): Command.__init__(self, **kwargs) def apply(self, ui): - del(ui.current_buffer.envelope[self.key]) + del ui.current_buffer.envelope[self.key] ui.current_buffer.rebuild() diff --git a/alot/db/envelope.py b/alot/db/envelope.py index 4541f93d..c31eef33 100644 --- a/alot/db/envelope.py +++ b/alot/db/envelope.py @@ -103,7 +103,7 @@ class Envelope(object): return self.headers[name][0] def __delitem__(self, name): - del(self.headers[name]) + del self.headers[name] if self.sent_time: self.modified_since_sent = True @@ -330,4 +330,4 @@ class Envelope(object): logging.debug('Attaching: %s' % to_attach) for path in to_attach: self.attach(path) - del(self['Attach']) + del self['Attach'] diff --git a/alot/db/message.py b/alot/db/message.py index c94d355b..6d6e6455 100644 --- a/alot/db/message.py +++ b/alot/db/message.py @@ -115,7 +115,7 @@ class Message(object): def has_replies(self): """returns true if this message has at least one reply""" - return (len(self.get_replies()) > 0) + return len(self.get_replies()) > 0 def get_replies(self): """returns replies to this message as list of :class:`Message`""" diff --git a/alot/settings/manager.py b/alot/settings/manager.py index 9dfe52b0..1d6ad913 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -141,10 +141,10 @@ class SettingsManager(object): args['abook'] = AbookAddressBook( contacts_path, ignorecase=abook['ignorecase']) else: - del(args['abook']) + del args['abook'] cmd = args['sendmail_command'] - del(args['sendmail_command']) + del args['sendmail_command'] newacc = SendmailAccount(cmd, **args) accounts.append(newacc) return accounts |