Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a33a063

Browse files
committed
Remove old unused class
It seem unused in our codebase. The only place where it is used in github import from genutils which don't exist in IPython. Closes #14
1 parent b87b138 commit a33a063

3 files changed

Lines changed: 2 additions & 25 deletions

File tree

IPython/core/magics/execution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from IPython.utils import py3compat
3939
from IPython.utils.py3compat import builtin_mod, iteritems, PY3
4040
from IPython.utils.contexts import preserve_keys
41-
from IPython.utils.io import capture_output
41+
from IPython.utils.capture import capture_output
4242
from IPython.utils.ipstruct import Struct
4343
from IPython.utils.module_paths import find_mod
4444
from IPython.utils.path import get_py_filename, unquote_filename, shellglob

IPython/core/profiledir.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ def find_profile_dir(cls, profile_dir, config=None):
226226
Parameters
227227
----------
228228
profile_dir : unicode or str
229-
The path of the profile directory. This is expanded using
230-
:func:`IPython.utils.genutils.expand_path`.
229+
The path of the profile directory.
231230
"""
232231
profile_dir = expand_path(profile_dir)
233232
if not os.path.isdir(profile_dir):

IPython/utils/io.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@
1010
from __future__ import absolute_import
1111

1212

13-
import codecs
14-
from contextlib import contextmanager
15-
import io
1613
import os
17-
import shutil
1814
import sys
1915
import tempfile
20-
import warnings
2116
from warnings import warn
2217
from .capture import CapturedIO, capture_output
2318
from .py3compat import string_types, input, PY3
@@ -82,23 +77,6 @@ def close(self):
8277
stdout = IOStream(sys.stdout, fallback=devnull)
8378
stderr = IOStream(sys.stderr, fallback=devnull)
8479

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-
10280
class Tee(object):
10381
"""A class to duplicate an output stream to stdout/err.
10482

0 commit comments

Comments
 (0)