From f03ca0869a86ab2d71b431a5be24fb1759728e87 2009-07-01 22:59:42 From: Brian Granger Date: 2009-07-01 22:59:42 Subject: [PATCH] background_jobs.py => lib/backgroundjob.py and imports updated. --- diff --git a/IPython/iplib.py b/IPython/iplib.py index aae75be..ccf0f72 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -53,7 +53,7 @@ from IPython.Logger import Logger from IPython.Magic import Magic from IPython.Prompts import CachedOutput from IPython.ipstruct import Struct -from IPython.background_jobs import BackgroundJobManager +from IPython.lib.backgroundjobs import BackgroundJobManager from IPython.genutils import * from IPython.strdispatch import StrDispatch import IPython.ipapi diff --git a/IPython/background_jobs.py b/IPython/lib/backgroundjobs.py similarity index 100% rename from IPython/background_jobs.py rename to IPython/lib/backgroundjobs.py diff --git a/IPython/lib/tests/test_imports.py b/IPython/lib/tests/test_imports.py new file mode 100644 index 0000000..ecff49a --- /dev/null +++ b/IPython/lib/tests/test_imports.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# encoding: utf-8 + +def test_import_backgroundjobs(): + from IPython.lib import backgroundjobs + diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index 094eacf..413aaec 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -198,7 +198,7 @@ def make_runners(): # XXX: Shell.py is also ommited because of a bug in the skip_doctest # decorator. See ticket https://bugs.launchpad.net/bugs/366209 top_mod = \ - ['background_jobs.py', 'coloransi.py', 'completer.py', 'ConfigLoader.py', + ['backgroundjobs.py', 'coloransi.py', 'completer.py', 'ConfigLoader.py', 'CrashHandler.py', 'Debugger.py', 'deep_reload.py', 'demo.py', 'DPyGetOpt.py', 'dtutils.py', 'excolors.py', 'FakeModule.py', 'generics.py', 'genutils.py', 'history.py', 'hooks.py', 'ipapi.py', diff --git a/IPython/utils/tests/test_imports.py b/IPython/utils/tests/test_imports.py new file mode 100644 index 0000000..e7350f7 --- /dev/null +++ b/IPython/utils/tests/test_imports.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# encoding: utf-8 + +def test_import_coloransi(): + from IPython.utils import coloransi + diff --git a/docs/source/development/reorg.txt b/docs/source/development/reorg.txt index 197376d..d3e68c9 100644 --- a/docs/source/development/reorg.txt +++ b/docs/source/development/reorg.txt @@ -85,8 +85,7 @@ level modules. Where things will be moved ========================== -* :file:`ColorANSI.py`. Move to :file:`IPython/core/coloransi.py`. Maybe move to - :mod:`IPython.lib` or :mod:`IPython.python`? +* :file:`ColorANSI.py`. Move to :file:`IPython/utils/coloransi.py`. * :file:`ConfigLoader.py`. Move to :file:`IPython/config/configloader.py`.