From 7204c2b29de78bafba4d2d0312b0694b73734fae Mon Sep 17 00:00:00 2001 From: moculus Date: Mon, 6 Oct 2008 04:55:38 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- method/shell.py | 2 ++ mode/awk.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/method/shell.py b/method/shell.py index 2f5260b..f542fc7 100644 --- a/method/shell.py +++ b/method/shell.py @@ -84,7 +84,9 @@ class Pipe(Method): (prog, cmd, shell) = self._parse(w, **vargs) if prog is None or not cmd: return + self._dopipe(w, prog, cmd, shell) + def _dopipe(self, w, prog, cmd, shell): pipe = Popen(cmd, shell=shell, stdin=PIPE, stdout=PIPE, stderr=STDOUT) pid = pipe.pid diff --git a/mode/awk.py b/mode/awk.py index b435abb..be21b9c 100644 --- a/mode/awk.py +++ b/mode/awk.py @@ -80,7 +80,7 @@ class AwkFilterFile(Exec): cmdname='awk', bufname='*Awk-Output*', opts={'data': vargs['path']}) -class AwkFilterBuffer(Method): +class AwkFilterBuffer(Pipe): pass class AwkFilterInput(Method): pass