parent
f48db1edda
commit
7204c2b29d
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue