diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-02-18 11:06:10 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-02-26 22:37:24 +0100 |
commit | ababeb6097a8a9cb836bc78cc6128a857b662c5d (patch) | |
tree | f3062aadb752ed1b0bc9ad6640fe869bc3a252b9 /filter.py | |
parent | 85c9ffd381ed93b662f2011aee8a5e8941ae409e (diff) | |
download | clufter-ababeb6097a8a9cb836bc78cc6128a857b662c5d.tar.gz clufter-ababeb6097a8a9cb836bc78cc6128a857b662c5d.tar.xz clufter-ababeb6097a8a9cb836bc78cc6128a857b662c5d.zip |
filter: do not info-log launching editor prematurely
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'filter.py')
-rw-r--r-- | filter.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# Copyright 2014 Red Hat, Inc. +# Copyright 2015 Red Hat, Inc. # Part of clufter project # Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt) """Base filter stuff (metaclass, decorator, etc.)""" @@ -343,10 +343,10 @@ class XMLFilter(Filter, MetaPlugin): editor_args = shlex_split(editor) + [tmp.name] assert len(editor_args) >= 2 editor_args[0] = which(editor_args[0]) - log.info("running `{0}'".format(' '.join(editor_args))) try: # pty.spawn doesn't work as nicely with open('/dev/tty') as f_tty: + log.info("running `{0}'".format(' '.join(editor_args))) check_call(editor_args, stdin=f_tty) except (CalledProcessError, IOError) as e: raise FilterError(cls, str(e)) |