##// END OF EJS Templates
Allow classic prompts without space....
Thomas Kluyver -
Show More
@@ -381,7 +381,7 b' def _strip_prompts(prompt_re):'
381 @CoroutineInputTransformer.wrap
381 @CoroutineInputTransformer.wrap
382 def classic_prompt():
382 def classic_prompt():
383 """Strip the >>>/... prompts of the Python interactive shell."""
383 """Strip the >>>/... prompts of the Python interactive shell."""
384 prompt_re = re.compile(r'^(>>> |^\.\.\. )')
384 prompt_re = re.compile(r'^(>>> ?|^\.\.\. ?)')
385 return _strip_prompts(prompt_re)
385 return _strip_prompts(prompt_re)
386
386
387 @CoroutineInputTransformer.wrap
387 @CoroutineInputTransformer.wrap
@@ -180,6 +180,10 b' syntax_ml = \\'
180 ('123','123'),
180 ('123','123'),
181 ('... 456"""','... 456"""'),
181 ('... 456"""','... 456"""'),
182 ],
182 ],
183 [('>>> def f(x):', 'def f(x):'),
184 ('...', ''),
185 ('... return x', ' return x'),
186 ],
183 ],
187 ],
184
188
185 ipy_prompt =
189 ipy_prompt =
General Comments 0
You need to be logged in to leave comments. Login now