##// END OF EJS Templates
- Add a safeguard under Win32 to protect against a bug in Python's...
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 2195 2007-04-02 05:35:16Z fperez $
9 $Id: iplib.py 2196 2007-04-02 06:02:16Z fperez $
10 """
10 """
11
11
12 #*****************************************************************************
12 #*****************************************************************************
@@ -2571,7 +2571,14 b' want to merge them back into the new files.""" % locals()'
2571 print >> sys.stderr, badline
2571 print >> sys.stderr, badline
2572 else: # regular file execution
2572 else: # regular file execution
2573 try:
2573 try:
2574 execfile(fname,*where)
2574 if sys.platform == 'win32':
2575 # Work around a bug in Python for Windows. The bug was
2576 # fixed in in Python 2.5 r54159 and 54158, but that's still
2577 # SVN Python as of March/07. For details, see:
2578 # http://projects.scipy.org/ipython/ipython/ticket/123
2579 exec file(fname) in where[0],where[1]
2580 else:
2581 execfile(fname,*where)
2575 except SyntaxError:
2582 except SyntaxError:
2576 self.showsyntaxerror()
2583 self.showsyntaxerror()
2577 warn('Failure executing file: <%s>' % fname)
2584 warn('Failure executing file: <%s>' % fname)
@@ -1,3 +1,8 b''
1 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
2
3 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
4 protect against a bug in Python's execfile(). Closes #123.
5
1 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
6 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
2
7
3 * IPython/iplib.py (split_user_input): ensure that when splitting
8 * IPython/iplib.py (split_user_input): ensure that when splitting
General Comments 0
You need to be logged in to leave comments. Login now