diff --git a/IPython/ipapi.py b/IPython/ipapi.py index 85ac9d2..1bc202e 100644 --- a/IPython/ipapi.py +++ b/IPython/ipapi.py @@ -358,7 +358,7 @@ class IPApi: if callable(cmd): self.IP.alias_table[name] = cmd - import IPython.shawodns + import IPython.shadowns setattr(IPython.shadowns, name,cmd) return diff --git a/IPython/iplib.py b/IPython/iplib.py index 285640d..4b199c0 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -6,7 +6,7 @@ Requires Python 2.3 or newer. This file contains all the classes and helper functions specific to IPython. -$Id: iplib.py 2606 2007-08-13 12:44:48Z fperez $ +$Id: iplib.py 2614 2007-08-13 18:32:38Z vivainio $ """ #***************************************************************************** @@ -2155,7 +2155,7 @@ want to merge them back into the new files.""" % locals() tgt = self.alias_table[line_info.iFun] # print "=>",tgt #dbg if callable(tgt): - line_out = "_sh." + line_info.iFun + '(r"""' + line_info.theRest + '""")' + line_out = "_sh." + line_info.iFun + '(r"""' + line_info.line + '""")' else: transformed = self.expand_aliases(line_info.iFun,line_info.theRest)