summaryrefslogtreecommitdiffstats
path: root/filter.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-02-18 11:06:10 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-02-26 22:37:24 +0100
commitababeb6097a8a9cb836bc78cc6128a857b662c5d (patch)
treef3062aadb752ed1b0bc9ad6640fe869bc3a252b9 /filter.py
parent85c9ffd381ed93b662f2011aee8a5e8941ae409e (diff)
downloadclufter-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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter.py b/filter.py
index 73f8cde..a8c1cf7 100644
--- a/filter.py
+++ b/filter.py
@@ -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))