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 284 |
|
9 | $Id: iplib.py 2846 2007-10-24 14:44:48Z vivainio $ | |
10 | """ |
|
10 | """ | |
11 |
|
11 | |||
12 | #***************************************************************************** |
|
12 | #***************************************************************************** | |
@@ -1902,6 +1902,7 b' want to merge them back into the new files.""" % locals()' | |||||
1902 | # this allows execution of indented pasted code. It is tempting |
|
1902 | # this allows execution of indented pasted code. It is tempting | |
1903 | # to add '\n' at the end of source to run commands like ' a=1' |
|
1903 | # to add '\n' at the end of source to run commands like ' a=1' | |
1904 | # directly, but this fails for more complicated scenarios |
|
1904 | # directly, but this fails for more complicated scenarios | |
|
1905 | source=source.encode(self.stdin_encoding) | |||
1905 | if source[:1] in [' ', '\t']: |
|
1906 | if source[:1] in [' ', '\t']: | |
1906 | source = 'if 1:\n%s' % source |
|
1907 | source = 'if 1:\n%s' % source | |
1907 |
|
1908 |
General Comments 0
You need to be logged in to leave comments.
Login now