diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-22 01:47:51 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-22 01:47:51 (GMT) |
commit | e594bee5351d6109ca5e6a7dde45e5ddd08ebe48 (patch) | |
tree | 42a6e81719e1b7ddcd260e8785e17e345b490dc4 /Lib/doctest.py | |
parent | 5268c3955ae6c1c2681ba214f5c2e450813913fd (diff) | |
download | cpython-e594bee5351d6109ca5e6a7dde45e5ddd08ebe48.zip cpython-e594bee5351d6109ca5e6a7dde45e5ddd08ebe48.tar.gz cpython-e594bee5351d6109ca5e6a7dde45e5ddd08ebe48.tar.bz2 |
_ellipsis_match(): Removed special-casing of "...\n". The semantics
are non-obvious either way because the newline character "is invisible",
but it's still there all the same, and it's easier to explain/predict
if that reality is left alone.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r-- | Lib/doctest.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index 6e6661d..25b14ca 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -398,10 +398,6 @@ def _ellipsis_match(want, got): """ if ELLIPSIS_MARKER not in want: return want == got - # Remove \n from ...\n, else the newline will be required, - # and (for example) ... on a line by itself can't match - # nothing gracefully. - want = want.replace(ELLIPSIS_MARKER + '\n', ELLIPSIS_MARKER) # Find "the real" strings. ws = want.split(ELLIPSIS_MARKER) |