|
10 | 10 | from __future__ import absolute_import |
11 | 11 |
|
12 | 12 |
|
13 | | -import codecs |
14 | | -from contextlib import contextmanager |
15 | | -import io |
16 | 13 | import os |
17 | | -import shutil |
18 | 14 | import sys |
19 | 15 | import tempfile |
20 | | -import warnings |
21 | 16 | from warnings import warn |
22 | 17 | from .capture import CapturedIO, capture_output |
23 | 18 | from .py3compat import string_types, input, PY3 |
@@ -82,23 +77,6 @@ def close(self): |
82 | 77 | stdout = IOStream(sys.stdout, fallback=devnull) |
83 | 78 | stderr = IOStream(sys.stderr, fallback=devnull) |
84 | 79 |
|
85 | | -class IOTerm: |
86 | | - """ Term holds the file or file-like objects for handling I/O operations. |
87 | | -
|
88 | | - These are normally just sys.stdin, sys.stdout and sys.stderr but for |
89 | | - Windows they can can replaced to allow editing the strings before they are |
90 | | - displayed.""" |
91 | | - |
92 | | - # In the future, having IPython channel all its I/O operations through |
93 | | - # this class will make it easier to embed it into other environments which |
94 | | - # are not a normal terminal (such as a GUI-based shell) |
95 | | - def __init__(self, stdin=None, stdout=None, stderr=None): |
96 | | - mymodule = sys.modules[__name__] |
97 | | - self.stdin = IOStream(stdin, mymodule.stdin) |
98 | | - self.stdout = IOStream(stdout, mymodule.stdout) |
99 | | - self.stderr = IOStream(stderr, mymodule.stderr) |
100 | | - |
101 | | - |
102 | 80 | class Tee(object): |
103 | 81 | """A class to duplicate an output stream to stdout/err. |
104 | 82 |
|
|
0 commit comments