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 |
|
|
|
435 |
setattr( |
|
|
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 |
|
|
|
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'] = |
|
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now