mirror of https://github.com/python/cpython
Issue #18647: A regular expression in the doctest module rewritten so that
determined minimal width of repeated subexpression is >0 (an empty line was not matched in any case).
This commit is contained in:
parent
9d96542b6d
commit
1ca66edbc5
|
@ -553,7 +553,7 @@ class DocTestParser:
|
|||
# Want consists of any non-blank lines that do not start with PS1.
|
||||
(?P<want> (?:(?![ ]*$) # Not a blank line
|
||||
(?![ ]*>>>) # Not a line starting with PS1
|
||||
.*$\n? # But any other line
|
||||
.+$\n? # But any other line
|
||||
)*)
|
||||
''', re.MULTILINE | re.VERBOSE)
|
||||
|
||||
|
|
Loading…
Reference in New Issue