79 |
|
if _in == PIPE: |
80 |
|
stdin = _in |
81 |
|
elif isinstance(_in, self._strtypes): |
82 |
< |
if self.donothing: stdin = None |
83 |
< |
else: stdin = open(_in, 'rb') |
82 |
> |
if not getattr(self, 'donothing', None): |
83 |
> |
stdin = open(_in, 'rb') |
84 |
> |
else: stdin = None |
85 |
|
instr = ' < "%s"' % _in |
86 |
|
elif hasattr(_in, 'read'): |
87 |
|
stdin = _in |
91 |
|
if out == PIPE: |
92 |
|
stdout = out |
93 |
|
elif isinstance(out, self._strtypes): |
94 |
< |
if self.donothing: stdout = None |
95 |
< |
else: stdout = open(out, 'wb') |
94 |
> |
if not getattr(self, 'donothing', None): |
95 |
> |
stdout = open(out, 'wb') |
96 |
> |
else: stdout = None |
97 |
|
outstr = ' > "%s"' % out |
98 |
|
elif hasattr(out, 'write'): |
99 |
|
stdout = out |