Commit fa21b413 by Michael DeHaan

Fixup the pipe_once plugin

parent 0af83317
......@@ -33,7 +33,8 @@ class LookupModule(object):
ret = []
for term in terms:
if term in CACHE:
ret.append(CACHE.get(term)
ret.append(CACHE.get(term))
continue
p = subprocess.Popen(term, cwd=self.basedir, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
(stdout, stderr) = p.communicate()
if p.returncode == 0:
......
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