diff --git a/IPython/paths.py b/IPython/paths.py index 5978772..82fba5a 100644 --- a/IPython/paths.py +++ b/IPython/paths.py @@ -9,8 +9,7 @@ import IPython from IPython.utils.importstring import import_item from IPython.utils.path import ( get_home_dir, get_xdg_dir, get_xdg_cache_dir, compress_user, _writable_dir, - ensure_dir_exists, fs_encoding, filefind -) + ensure_dir_exists, fs_encoding) from IPython.utils import py3compat def get_ipython_dir(): diff --git a/IPython/utils/_process_cli.py b/IPython/utils/_process_cli.py index a7b7b90..6d96bd1 100644 --- a/IPython/utils/_process_cli.py +++ b/IPython/utils/_process_cli.py @@ -11,16 +11,11 @@ interface for IronPython will probably require you to help fill in the details. """ -# Import cli libraries: -import clr -import System -# Import Python libraries: +import System import os - -# Import IPython libraries: from IPython.utils import py3compat -from ._process_common import arg_split + def _find_cmd(cmd): """Find the full path to a command using which.""" diff --git a/IPython/utils/ulinecache.py b/IPython/utils/ulinecache.py index 943de05..0b4ede0 100644 --- a/IPython/utils/ulinecache.py +++ b/IPython/utils/ulinecache.py @@ -5,12 +5,8 @@ Wrapper around linecache which decodes files to unicode according to PEP 263. """ import functools import linecache -import sys from warnings import warn -from IPython.utils import py3compat -from IPython.utils import openpy - getline = linecache.getline # getlines has to be looked up at runtime, because doctests monkeypatch it.