diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-19 20:04:33 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-19 20:04:33 (GMT) |
commit | 75674ae8ddc9ab83200919de6f75ead695be9bcb (patch) | |
tree | 941b39d662a41d0f0b7357bebff21eee3c31eb1d /Lib/doctest.py | |
parent | 20c3dd25c01d0154c611f5acea72a48f3e09b4d7 (diff) | |
parent | 1ca66edbc50aa1b1e5d010f722e708756cce3214 (diff) | |
download | cpython-75674ae8ddc9ab83200919de6f75ead695be9bcb.zip cpython-75674ae8ddc9ab83200919de6f75ead695be9bcb.tar.gz cpython-75674ae8ddc9ab83200919de6f75ead695be9bcb.tar.bz2 |
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).
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r-- | Lib/doctest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index 1c94e75..a26c040 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -557,7 +557,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) |