##// END OF EJS Templates
cpaste strips +, doc changes
vivainio -
Show More
@@ -1,7 +1,7 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Magic functions for InteractiveShell.
2 """Magic functions for InteractiveShell.
3
3
4 $Id: Magic.py 2392 2007-05-25 17:49:35Z vivainio $"""
4 $Id: Magic.py 2406 2007-05-28 15:31:36Z vivainio $"""
5
5
6 #*****************************************************************************
6 #*****************************************************************************
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
@@ -2803,11 +2803,11 b' Defaulting color scheme to \'NoColor\'"""'
2803 line. You can also provide your own sentinel with '%paste -s %%' ('%%'
2803 line. You can also provide your own sentinel with '%paste -s %%' ('%%'
2804 is the new sentinel for this operation)
2804 is the new sentinel for this operation)
2805
2805
2806 The block is dedented prior to execution to enable execution of
2806 The block is dedented prior to execution to enable execution of method
2807 method definitions. '>' characters at the beginning of a line is
2807 definitions. '>' and '+' characters at the beginning of a line are
2808 ignored, to allow pasting directly from e-mails. The executed block
2808 ignored, to allow pasting directly from e-mails or diff files. The
2809 is also assigned to variable named 'pasted_block' for later editing
2809 executed block is also assigned to variable named 'pasted_block' for
2810 with '%edit pasted_block'.
2810 later editing with '%edit pasted_block'.
2811
2811
2812 You can also pass a variable name as an argument, e.g. '%cpaste foo'.
2812 You can also pass a variable name as an argument, e.g. '%cpaste foo'.
2813 This assigns the pasted block to variable 'foo' as string, without
2813 This assigns the pasted block to variable 'foo' as string, without
@@ -2830,7 +2830,7 b' Defaulting color scheme to \'NoColor\'"""'
2830 l = iplib.raw_input_original(':')
2830 l = iplib.raw_input_original(':')
2831 if l ==sentinel:
2831 if l ==sentinel:
2832 break
2832 break
2833 lines.append(l.lstrip('>'))
2833 lines.append(l.lstrip('>').lstrip('+'))
2834 block = "\n".join(lines) + '\n'
2834 block = "\n".join(lines) + '\n'
2835 #print "block:\n",block
2835 #print "block:\n",block
2836 if not par:
2836 if not par:
@@ -19,7 +19,7 b' svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk/pyreadline'
19
19
20 mkdir dist\_ipython
20 mkdir dist\_ipython
21 touch dist/_ipython/ipythonrc.ini
21 touch dist/_ipython/ipythonrc.ini
22 echo "import ipy_profile_sh" > dist/ipy_user_conf.py
22 echo import ipy_profile_sh > dist/_ipython/ipy_user_conf.py
23
23
24 - Run ipython.exe to go.
24 - Run ipython.exe to go.
25
25
General Comments 0
You need to be logged in to leave comments. Login now