Show More
@@ -20,8 +20,12 b' def pipefilter(s, cmd):' | |||
|
20 | 20 | '''filter string S through command CMD, returning its output''' |
|
21 | 21 | (pout, pin) = popen2.popen2(cmd, -1, 'b') |
|
22 | 22 | def writer(): |
|
23 | pin.write(s) | |
|
24 |
pin. |
|
|
23 | try: | |
|
24 | pin.write(s) | |
|
25 | pin.close() | |
|
26 | except IOError, inst: | |
|
27 | if inst.errno != errno.EPIPE: | |
|
28 | raise | |
|
25 | 29 | |
|
26 | 30 | # we should use select instead on UNIX, but this will work on most |
|
27 | 31 | # systems, including Windows |
General Comments 0
You need to be logged in to leave comments.
Login now