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

Skip to content

Commit f3a106b

Browse files
committed
FakeModule.py => core/fakemodule.py and updated tests and imports.
1 parent 2d44c08 commit f3a106b

9 files changed

Lines changed: 13 additions & 10 deletions

File tree

IPython/Extensions/ipy_jot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import pickleshare
1515

1616
import inspect,pickle,os,sys,textwrap
17-
from IPython.FakeModule import FakeModule
17+
from IPython.core.fakemodule import FakeModule
1818
from IPython.ipstruct import Struct
1919

2020

IPython/Extensions/pspersistence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import pickleshare
1313

1414
import inspect,pickle,os,sys,textwrap
15-
from IPython.FakeModule import FakeModule
15+
from IPython.core.fakemodule import FakeModule
1616

1717
def restore_aliases(self):
1818
ip = self.getapi()

IPython/Magic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import IPython
4646
from IPython import OInspect, wildcard
4747
from IPython.core import debugger
48-
from IPython.FakeModule import FakeModule
48+
from IPython.core.fakemodule import FakeModule
4949
from IPython.Itpl import Itpl, itpl, printpl,itplns
5050
from IPython.PyColorize import Parser
5151
from IPython.ipstruct import Struct
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import nose.tools as nt
55

6-
from IPython.FakeModule import FakeModule, init_fakemod_dict
6+
from IPython.core.fakemodule import FakeModule, init_fakemod_dict
77

88
# Make a fakemod and check a few properties
99
def test_mk_fakemod():

IPython/core/tests/test_imports.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ def test_import_crashhandler():
88
from IPython.core import crashhandler
99

1010
def test_import_debugger():
11-
from IPython.core import debugger
11+
from IPython.core import debugger
12+
13+
def test_import_fakemodule():
14+
from IPython.core import fakemodule
15+

IPython/iplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from IPython import OInspect,PyColorize,ultraTB
4949
from IPython.core import debugger
5050
from IPython.Extensions import pickleshare
51-
from IPython.FakeModule import FakeModule, init_fakemod_dict
51+
from IPython.core.fakemodule import FakeModule, init_fakemod_dict
5252
from IPython.Itpl import ItplNS
5353
from IPython.Logger import Logger
5454
from IPython.Magic import Magic

IPython/testing/iptest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def make_runners():
200200
top_mod = \
201201
['backgroundjobs.py', 'coloransi.py', 'completer.py', 'configloader.py',
202202
'crashhandler.py', 'debugger.py', 'deepreload.py', 'demo.py',
203-
'DPyGetOpt.py', 'dtutils.py', 'excolors.py', 'FakeModule.py',
203+
'DPyGetOpt.py', 'dtutils.py', 'excolors.py', 'fakemodule.py',
204204
'generics.py', 'genutils.py', 'history.py', 'hooks.py', 'ipapi.py',
205205
'iplib.py', 'ipmaker.py', 'ipstruct.py', 'Itpl.py',
206206
'Logger.py', 'macro.py', 'Magic.py', 'OInspect.py',

docs/source/development/reorg.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,14 @@ Where things will be moved
105105

106106
* :file:`DPyGetOpt.py`. Move to :mod:`IPython.utils` and replace with newer options parser.
107107

108-
* :file:`dtutils.py`. Remove or move to :file:`IPython.testing` or
109-
:file:`IPython.lib`.
108+
* :file:`dtutils.py`. Move to :file:`IPython.deathrow`.
110109

110+
* :file:`FakeModule.py`. Move to :file:`IPython/core/fakemodule.py`.
111111

112112

113113
* :file:`Extensions`. This needs to be gone through separately. Minimally,
114114
the package should be renamed to :file:`extensions`.
115115

116-
* :file:`FakeModule.py`. Move to :file:`IPython/core/fakemodule.py`.
117116

118117
* :file:`Gnuplot2.py`. Move to :file:`IPython.sandbox`.
119118

0 commit comments

Comments
 (0)