##// END OF EJS Templates
Remove opening/at-exit closing of devnull....
Matthias Bussonnier -
Show More
@@ -18,11 +18,6 b' from warnings import warn'
18 from IPython.utils.decorators import undoc
18 from IPython.utils.decorators import undoc
19 from .capture import CapturedIO, capture_output
19 from .capture import CapturedIO, capture_output
20
20
21 # setup stdin/stdout/stderr to sys.stdin/sys.stdout/sys.stderr
22 devnull = open(os.devnull, "w", encoding="utf-8")
23 atexit.register(devnull.close)
24
25
26 class Tee(object):
21 class Tee(object):
27 """A class to duplicate an output stream to stdout/err.
22 """A class to duplicate an output stream to stdout/err.
28
23
General Comments 0
You need to be logged in to leave comments. Login now