diff options
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r-- | alot/commands/envelope.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 457fe48a..fa45f669 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -44,7 +44,7 @@ class AttachCommand(Command): :param path: files to attach (globable string) :type path: str """ - Command.__init__(self, **kwargs) + super().__init__(**kwargs) self.path = path def apply(self, ui): @@ -74,7 +74,7 @@ class UnattachCommand(Command): :param hint: which attached file to remove :type hint: str """ - Command.__init__(self, **kwargs) + super().__init__(**kwargs) self.hint = hint def apply(self, ui): @@ -98,7 +98,7 @@ class RefineCommand(Command): :param key: key of the header to change :type key: str """ - Command.__init__(self, **kwargs) + super().__init__(**kwargs) self.key = key async def apply(self, ui): @@ -162,7 +162,7 @@ class SendCommand(Command): will be ignored in case the mail parameter is set. :type envelope: alot.db.envelope.envelope """ - Command.__init__(self, **kwargs) + super().__init__(**kwargs) self.mail = mail self.envelope = envelope self.envelope_buffer = None @@ -328,7 +328,7 @@ class EditCommand(Command): self.force_spawn = spawn self.refocus = refocus self.edit_only_body = False - Command.__init__(self, **kwargs) + super().__init__(**kwargs) async def apply(self, ui): ebuffer = ui.current_buffer @@ -435,7 +435,7 @@ class SetCommand(Command): self.key = key self.value = ' '.join(value) self.reset = not append - Command.__init__(self, **kwargs) + super().__init__(**kwargs) async def apply(self, ui): envelope = ui.current_buffer.envelope @@ -462,7 +462,7 @@ class UnsetCommand(Command): :type key: str """ self.key = key - Command.__init__(self, **kwargs) + super().__init__(**kwargs) async def apply(self, ui): del ui.current_buffer.envelope[self.key] @@ -510,7 +510,7 @@ class SignCommand(Command): """ self.action = action self.keyid = keyid - Command.__init__(self, **kwargs) + super().__init__(**kwargs) def apply(self, ui): sign = None @@ -597,7 +597,7 @@ class EncryptCommand(Command): self.encrypt_keys = keyids self.action = action self.trusted = trusted - Command.__init__(self, **kwargs) + super().__init__(**kwargs) async def apply(self, ui): envelope = ui.current_buffer.envelope @@ -671,7 +671,7 @@ class TagCommand(Command): assert isinstance(tags, str), 'tags should be a unicode string' self.tagsstring = tags self.action = action - Command.__init__(self, **kwargs) + super().__init__(**kwargs) def apply(self, ui): ebuffer = ui.current_buffer |