Commit 1cba4b4b authored by ale's avatar ale

open stdin on Popen

parent da14e368
......@@ -18,7 +18,9 @@ def clamscan(files):
results = []
def _flush():
pipe = subprocess.Popen(state['buf'], stderr=devnull)
pipe = subprocess.Popen(state['buf'],
stdin=subprocess.PIPE,
stderr=devnull)
for line in pipe.stdin:
m = row_pattern.match(line.rstrip('\n'))
if m:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment