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

for a null file.
master
Wirawan Purwanto 11 years ago
parent 80961ed2bd
commit 2daca4af6e
  1. 4
      file/tee.py

@ -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)

Loading…
Cancel
Save