summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/addressbook/abook.py2
-rw-r--r--alot/commands/envelope.py4
-rw-r--r--alot/db/envelope.py4
-rw-r--r--alot/db/message.py2
-rw-r--r--alot/settings/manager.py4
-rwxr-xr-xextra/tagsections_convert.py4
6 files changed, 10 insertions, 10 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
diff --git a/extra/tagsections_convert.py b/extra/tagsections_convert.py
index 3a73f60f..e6fff161 100755
--- a/extra/tagsections_convert.py
+++ b/extra/tagsections_convert.py
@@ -62,14 +62,14 @@ if __name__ == "__main__":
if not is_256(fg):
att[2] = fg
att[4] = fg
- del(sec['fg'])
+ del sec['fg']
if 'bg' in sec:
bg = sec['bg']
if not is_256(bg):
att[3] = bg
att[5] = bg
- del(sec['bg'])
+ del sec['bg']
sec['normal'] = att
if sec.get('hidden'):