* tee_output: Allow None to be given in the `files' argument, which stands

for a null file.
This commit is contained in:
Wirawan Purwanto
2013-04-19 16:46:09 -04:00
parent 80961ed2bd
commit 2daca4af6e

View File

@@ -30,7 +30,9 @@ class tee_output(object):
auto_close = []
mode = opts.get("mode", "w")
for f in files:
if isinstance(f, basestring):
if f == None:
pass
elif isinstance(f, basestring):
F = open(f, mode=mode)
fd.append(F)
auto_close.append(True)