Show More
@@ -92,23 +92,23 b' classic_prompt = PromptStripper(' | |||
|
92 | 92 | ipython_prompt = PromptStripper( |
|
93 | 93 | re.compile( |
|
94 | 94 | r""" |
|
95 | ^( # Match from the beginning of a line, either: | |
|
95 | ^( # Match from the beginning of a line, either: | |
|
96 | 96 | |
|
97 | # 1. First-line prompt: | |
|
98 | ((\[nav\]|\[ins\])?\ )? # Vi editing mode prompt, if it's there | |
|
99 | In\ # The 'In' of the prompt, with a space | |
|
100 | \[\d+\]: # Command index, as displayed in the prompt | |
|
101 | \ # With a mandatory trailing space | |
|
97 | # 1. First-line prompt: | |
|
98 | ((\[nav\]|\[ins\])?\ )? # Vi editing mode prompt, if it's there | |
|
99 | In\ # The 'In' of the prompt, with a space | |
|
100 | \[\d+\]: # Command index, as displayed in the prompt | |
|
101 | \ # With a mandatory trailing space | |
|
102 | 102 | |
|
103 | | # ... or ... | |
|
103 | | # ... or ... | |
|
104 | 104 | |
|
105 | # 2. The three dots of the multiline prompt | |
|
106 | \s* # All leading whitespace characters | |
|
107 | \.{3,}: # The three (or more) dots | |
|
108 | \ ? # With an optional trailing space | |
|
105 | # 2. The three dots of the multiline prompt | |
|
106 | \s* # All leading whitespace characters | |
|
107 | \.{3,}: # The three (or more) dots | |
|
108 | \ ? # With an optional trailing space | |
|
109 | 109 | |
|
110 | ) | |
|
111 | """, | |
|
110 | ) | |
|
111 | """, | |
|
112 | 112 | re.VERBOSE, |
|
113 | 113 | ) |
|
114 | 114 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now