##// END OF EJS Templates
applied next part of jorgens patch does source.encode(self.stdin_encoding)
vivainio -
Show More
@@ -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 2844 2007-10-24 14:34:18Z vivainio $
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 1902 # this allows execution of indented pasted code. It is tempting
1903 1903 # to add '\n' at the end of source to run commands like ' a=1'
1904 1904 # directly, but this fails for more complicated scenarios
1905 source=source.encode(self.stdin_encoding)
1905 1906 if source[:1] in [' ', '\t']:
1906 1907 source = 'if 1:\n%s' % source
1907 1908
General Comments 0
You need to be logged in to leave comments. Login now