diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-19 16:27:55 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-19 16:27:55 +0100 |
commit | fdea26a8576be31687539cca81c947594e7def44 (patch) | |
tree | 2c12e5587e36419aa8c67e71a92bc5a336fe289d /alot | |
parent | f01894c1e44bd9b17f030cf2c40f54bd818d40fa (diff) |
pep8 fixes
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/envelope.py | 1 | ||||
-rw-r--r-- | alot/commands/globals.py | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 1cacf8f1..32212020 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -131,7 +131,6 @@ class EnvelopeEditCommand(Command): self.edit_headers = edit_headers - blacklist ui.logger.info('editable headers: %s' % blacklist) - def openEnvelopeFromTmpfile(): # This parses the input from the tempfile. # we do this ourselves here because we want to be able to diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 17b37ab2..71c5768d 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -177,7 +177,8 @@ class EditCommand(ExternalCommand): if thread != None: self.thread = thread else: - self.thread = settings.config.getboolean('general', 'editor_in_thread') + self.thread = settings.config.getboolean('general', + 'editor_in_thread') self.editor_cmd = None if os.path.isfile('/usr/bin/editor'): @@ -185,11 +186,12 @@ class EditCommand(ExternalCommand): self.editor_cmd = os.environ.get('EDITOR', self.editor_cmd) self.editor_cmd = settings.config.get('general', 'editor_cmd', fallback=self.editor_cmd) - logging.debug('using editor_cmd: %s' %self.editor_cmd) + logging.debug('using editor_cmd: %s' % self.editor_cmd) ExternalCommand.__init__(self, self.editor_cmd, path=self.path, spawn=self.spawn, thread=self.thread, **kwargs) + def apply(self, ui): if self.editor_cmd == None: ui.notify('no editor set', priority='error') |