##// END OF EJS Templates
%cpaste: strip whitespace before >>> in regex to allow pasting doctests
vivainio2 -
Show More
@@ -3167,7 +3167,7 b' Defaulting color scheme to \'NoColor\'"""'
3167 sentinel = opts.get('s','--')
3167 sentinel = opts.get('s','--')
3168
3168
3169 strip_from_start = [re.compile(e) for e in
3169 strip_from_start = [re.compile(e) for e in
3170 ['^(.?>)+','^In \[\d+\]:','^\++']]
3170 [r'^\s*(\s?>)+',r'^\s*In \[\d+\]:',r'^\++']]
3171 from IPython import iplib
3171 from IPython import iplib
3172 lines = []
3172 lines = []
3173 print "Pasting code; enter '%s' alone on the line to stop." % sentinel
3173 print "Pasting code; enter '%s' alone on the line to stop." % sentinel
@@ -3,7 +3,8 b''
3 * iplib.py, ipmaker.py: survive lack of doctest and site._Helper
3 * iplib.py, ipmaker.py: survive lack of doctest and site._Helper
4 for minimal environments (e.g. Maemo sdk python)
4 for minimal environments (e.g. Maemo sdk python)
5
5
6 * Branch for 0.8.3
6 * Magic.py: cpaste strips whitespace before >>> (allow pasting
7 doctests)
7
8
8 2008-05-14 Ville Vainio <vivainio@gmail.com>
9 2008-05-14 Ville Vainio <vivainio@gmail.com>
9
10
@@ -3,7 +3,8 b''
3 tests = {'pass': ["> > > run()",
3 tests = {'pass': ["> > > run()",
4 ">>> > run()",
4 ">>> > run()",
5 "+++ run()",
5 "+++ run()",
6 "++ run()"],
6 "++ run()",
7 " >>> run()"],
7
8
8 'fail': ["+ + run()",
9 'fail': ["+ + run()",
9 " ++ run()"]}
10 " ++ run()"]}
General Comments 0
You need to be logged in to leave comments. Login now