##// END OF EJS Templates
Fix InputTransformer to strip Qt console continuation prompts....
Thomas Kluyver -
Show More
@@ -453,8 +453,7 b' def classic_prompt():'
453 def ipy_prompt():
453 def ipy_prompt():
454 """Strip IPython's In [1]:/...: prompts."""
454 """Strip IPython's In [1]:/...: prompts."""
455 # FIXME: non-capturing version (?:...) usable?
455 # FIXME: non-capturing version (?:...) usable?
456 # FIXME: r'^(In \[\d+\]: | {3}\.{3,}: )' clearer?
456 prompt_re = re.compile(r'^(In \[\d+\]: |\ {3,}\.{3,}: )')
457 prompt_re = re.compile(r'^(In \[\d+\]: |\ \ \ \.\.\.+: )')
458 return _strip_prompts(prompt_re)
457 return _strip_prompts(prompt_re)
459
458
460
459
General Comments 0
You need to be logged in to leave comments. Login now