##// END OF EJS Templates
defalias with callable now passes the whole input line to the callable
vivainio -
Show More
@@ -358,7 +358,7 b' class IPApi:'
358 358
359 359 if callable(cmd):
360 360 self.IP.alias_table[name] = cmd
361 import IPython.shawodns
361 import IPython.shadowns
362 362 setattr(IPython.shadowns, name,cmd)
363 363 return
364 364
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.'
6 6
7 7 This file contains all the classes and helper functions specific to IPython.
8 8
9 $Id: iplib.py 2606 2007-08-13 12:44:48Z fperez $
9 $Id: iplib.py 2614 2007-08-13 18:32:38Z vivainio $
10 10 """
11 11
12 12 #*****************************************************************************
@@ -2155,7 +2155,7 b' want to merge them back into the new files.""" % locals()'
2155 2155 tgt = self.alias_table[line_info.iFun]
2156 2156 # print "=>",tgt #dbg
2157 2157 if callable(tgt):
2158 line_out = "_sh." + line_info.iFun + '(r"""' + line_info.theRest + '""")'
2158 line_out = "_sh." + line_info.iFun + '(r"""' + line_info.line + '""")'
2159 2159 else:
2160 2160 transformed = self.expand_aliases(line_info.iFun,line_info.theRest)
2161 2161
General Comments 0
You need to be logged in to leave comments. Login now