equal
deleted
inserted
replaced
159 |
159 |
160 return f |
160 return f |
161 |
161 |
162 def pipefilter(s, cmd): |
162 def pipefilter(s, cmd): |
163 '''filter string S through command CMD, returning its output''' |
163 '''filter string S through command CMD, returning its output''' |
164 (pout, pin) = popen2.popen2(cmd, -1, 'b') |
164 (pin, pout) = os.popen2(cmd, 'b') |
165 def writer(): |
165 def writer(): |
166 try: |
166 try: |
167 pin.write(s) |
167 pin.write(s) |
168 pin.close() |
168 pin.close() |
169 except IOError, inst: |
169 except IOError, inst: |