##// END OF EJS Templates
Only allow '>>>' prompt without space afterwards if line is blank...
Thomas Kluyver -
Show More
@@ -453,8 +453,8 b' def _strip_prompts(prompt_re, initial_re=None):'
453 453 def classic_prompt():
454 454 """Strip the >>>/... prompts of the Python interactive shell."""
455 455 # FIXME: non-capturing version (?:...) usable?
456 prompt_re = re.compile(r'^(>>> ?|\.\.\. ?)')
457 initial_re = re.compile(r'^(>>> ?)')
456 prompt_re = re.compile(r'^(>>>|\.\.\.)( |$)')
457 initial_re = re.compile(r'^>>>( |$)')
458 458 return _strip_prompts(prompt_re, initial_re)
459 459
460 460 @CoroutineInputTransformer.wrap
1 NO CONTENT: modified file
General Comments 0
You need to be logged in to leave comments. Login now