diff --git a/IPython/core/async_helpers.py b/IPython/core/async_helpers.py index 0e7db0b..4dfac54 100644 --- a/IPython/core/async_helpers.py +++ b/IPython/core/async_helpers.py @@ -10,7 +10,6 @@ explicitly to actually raise a SyntaxError and stay as close as possible to Python semantics. """ - import ast import asyncio import inspect diff --git a/IPython/core/tests/test_autocall.py b/IPython/core/tests/test_autocall.py index 925a1cc..f371a4b 100644 --- a/IPython/core/tests/test_autocall.py +++ b/IPython/core/tests/test_autocall.py @@ -5,6 +5,7 @@ directory, which we are removing. For now putting this here ensures at least we do run the test, though ultimately this functionality should all be tested with better-isolated tests that don't rely on the global instance in iptest. """ + from IPython.core.splitinput import LineInfo from IPython.core.prefilter import AutocallChecker diff --git a/IPython/extensions/tests/test_autoreload.py b/IPython/extensions/tests/test_autoreload.py index 781885d..47f3e2d 100644 --- a/IPython/extensions/tests/test_autoreload.py +++ b/IPython/extensions/tests/test_autoreload.py @@ -1,5 +1,6 @@ """Tests for autoreload extension. """ + # ----------------------------------------------------------------------------- # Copyright (c) 2012 IPython Development Team. # diff --git a/IPython/terminal/pt_inputhooks/asyncio.py b/IPython/terminal/pt_inputhooks/asyncio.py index d2499e1..8f6a7f4 100644 --- a/IPython/terminal/pt_inputhooks/asyncio.py +++ b/IPython/terminal/pt_inputhooks/asyncio.py @@ -27,6 +27,7 @@ prompt_toolkit`s `patch_stdout`):: In [4]: asyncio.ensure_future(f()) """ + from prompt_toolkit import __version__ as ptk_version from IPython.core.async_helpers import get_asyncio_loop diff --git a/IPython/utils/_process_emscripten.py b/IPython/utils/_process_emscripten.py index 05dcdc3..bfc2518 100644 --- a/IPython/utils/_process_emscripten.py +++ b/IPython/utils/_process_emscripten.py @@ -3,7 +3,6 @@ This file is only meant to be imported by process.py, not by end-users. """ - from ._process_common import arg_split