##// END OF EJS Templates
Fix regexp that inadvertedly broke magics with explicit % prefix.
fperez -
Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.'
6
6
7 This file contains all the classes and helper functions specific to IPython.
7 This file contains all the classes and helper functions specific to IPython.
8
8
9 $Id: iplib.py 2122 2007-03-01 02:27:11Z fperez $
9 $Id: iplib.py 2123 2007-03-01 06:54:44Z fperez $
10 """
10 """
11
11
12 #*****************************************************************************
12 #*****************************************************************************
@@ -498,7 +498,7 b' class InteractiveShell(object,Magic):'
498 # I'm afraid of breaking something; do it once the unit tests are in
498 # I'm afraid of breaking something; do it once the unit tests are in
499 # place.
499 # place.
500 self.line_split_fallback = re.compile(r'^(\s*)'
500 self.line_split_fallback = re.compile(r'^(\s*)'
501 r'([\w\.]*)'
501 r'([%\w\.]*)'
502 r'(.*)')
502 r'(.*)')
503
503
504 # Original re, keep around for a while in case changes break something
504 # Original re, keep around for a while in case changes break something
@@ -3,6 +3,8 b''
3 * IPython/iplib.py (split_user_input): fix input splitting so we
3 * IPython/iplib.py (split_user_input): fix input splitting so we
4 don't attempt attribute accesses on things that can't possibly be
4 don't attempt attribute accesses on things that can't possibly be
5 valid Python attributes. After a bug report by Alex Schmolck.
5 valid Python attributes. After a bug report by Alex Schmolck.
6 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
7 %magic with explicit % prefix.
6
8
7 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
9 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
8
10
General Comments 0
You need to be logged in to leave comments. Login now