##// END OF EJS Templates
shadowns.py => core/shadowns.py and updated imports.
Brian Granger -
Show More
@@ -431,8 +431,8 class IPApi(object):
431 431
432 432 if callable(cmd):
433 433 self.IP.alias_table[name] = cmd
434 import IPython.shadowns
435 setattr(IPython.shadowns, name,cmd)
434 from IPython.core import shadowns
435 setattr(shadowns, name,cmd)
436 436 return
437 437
438 438 if isinstance(cmd,basestring):
@@ -61,7 +61,7 from IPython.strdispatch import StrDispatch
61 61 from IPython.core import ipapi
62 62 import IPython.core.history
63 63 import IPython.core.prefilter as prefilter
64 import IPython.shadowns
64 from IPython.core import shadowns
65 65 # Globals
66 66
67 67 # store the builtin raw_input globally, and use this always, in case user code
@@ -948,7 +948,7 class InteractiveShell(object,Magic):
948 948 self.user_ns['In'] = self.input_hist
949 949 self.user_ns['Out'] = self.output_hist
950 950
951 self.user_ns['_sh'] = IPython.shadowns
951 self.user_ns['_sh'] = shadowns
952 952
953 953 # Fill the history zero entry, user counter starts at 1
954 954 self.input_hist.append('\n')
1 NO CONTENT: file renamed from IPython/shadowns.py to IPython/core/shadowns.py
@@ -53,4 +53,7 def test_import_prompts():
53 53 from IPython.core import prompts
54 54
55 55 def test_import_release():
56 from IPython.core import release No newline at end of file
56 from IPython.core import release
57
58 def test_import_shadowns():
59 from IPython.core import shadowns
General Comments 0
You need to be logged in to leave comments. Login now