Show More
@@ -431,8 +431,8 b' class IPApi(object):' | |||||
431 |
|
431 | |||
432 | if callable(cmd): |
|
432 | if callable(cmd): | |
433 | self.IP.alias_table[name] = cmd |
|
433 | self.IP.alias_table[name] = cmd | |
434 |
|
|
434 | from IPython.core import shadowns | |
435 |
setattr( |
|
435 | setattr(shadowns, name,cmd) | |
436 | return |
|
436 | return | |
437 |
|
437 | |||
438 | if isinstance(cmd,basestring): |
|
438 | if isinstance(cmd,basestring): |
@@ -61,7 +61,7 b' from IPython.strdispatch import StrDispatch' | |||||
61 | from IPython.core import ipapi |
|
61 | from IPython.core import ipapi | |
62 | import IPython.core.history |
|
62 | import IPython.core.history | |
63 | import IPython.core.prefilter as prefilter |
|
63 | import IPython.core.prefilter as prefilter | |
64 |
|
|
64 | from IPython.core import shadowns | |
65 | # Globals |
|
65 | # Globals | |
66 |
|
66 | |||
67 | # store the builtin raw_input globally, and use this always, in case user code |
|
67 | # store the builtin raw_input globally, and use this always, in case user code | |
@@ -948,7 +948,7 b' class InteractiveShell(object,Magic):' | |||||
948 | self.user_ns['In'] = self.input_hist |
|
948 | self.user_ns['In'] = self.input_hist | |
949 | self.user_ns['Out'] = self.output_hist |
|
949 | self.user_ns['Out'] = self.output_hist | |
950 |
|
950 | |||
951 |
self.user_ns['_sh'] = |
|
951 | self.user_ns['_sh'] = shadowns | |
952 |
|
952 | |||
953 | # Fill the history zero entry, user counter starts at 1 |
|
953 | # Fill the history zero entry, user counter starts at 1 | |
954 | self.input_hist.append('\n') |
|
954 | self.input_hist.append('\n') |
1 | NO CONTENT: file renamed from IPython/shadowns.py to IPython/core/shadowns.py |
|
NO CONTENT: file renamed from IPython/shadowns.py to IPython/core/shadowns.py |
@@ -53,4 +53,7 b' def test_import_prompts():' | |||||
53 | from IPython.core import prompts |
|
53 | from IPython.core import prompts | |
54 |
|
54 | |||
55 | def test_import_release(): |
|
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