Show More
@@ -461,7 +461,7 b' def classic_prompt():' | |||||
461 | def ipy_prompt(): |
|
461 | def ipy_prompt(): | |
462 | """Strip IPython's In [1]:/...: prompts.""" |
|
462 | """Strip IPython's In [1]:/...: prompts.""" | |
463 | # FIXME: non-capturing version (?:...) usable? |
|
463 | # FIXME: non-capturing version (?:...) usable? | |
464 |
prompt_re = re.compile(r'^(In \[\d+\]: |\ |
|
464 | prompt_re = re.compile(r'^(In \[\d+\]: |\s*\.{3,}: )') | |
465 | return _strip_prompts(prompt_re) |
|
465 | return _strip_prompts(prompt_re) | |
466 |
|
466 | |||
467 |
|
467 |
@@ -228,6 +228,11 b' syntax_ml = \\' | |||||
228 | (' ...: print i',' print i'), |
|
228 | (' ...: print i',' print i'), | |
229 | (' ...: ', ''), |
|
229 | (' ...: ', ''), | |
230 | ], |
|
230 | ], | |
|
231 | [('In [24]: for i in range(10):','for i in range(10):'), | |||
|
232 | # Sometimes whitespace preceding '...' has been removed (issue #6674) | |||
|
233 | ('...: print i',' print i'), | |||
|
234 | ('...: ', ''), | |||
|
235 | ], | |||
231 | [('In [2]: a="""','a="""'), |
|
236 | [('In [2]: a="""','a="""'), | |
232 | (' ...: 123"""','123"""'), |
|
237 | (' ...: 123"""','123"""'), | |
233 | ], |
|
238 | ], |
General Comments 0
You need to be logged in to leave comments.
Login now