summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-22 01:47:51 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-22 01:47:51 (GMT)
commite594bee5351d6109ca5e6a7dde45e5ddd08ebe48 (patch)
tree42a6e81719e1b7ddcd260e8785e17e345b490dc4 /Lib/doctest.py
parent5268c3955ae6c1c2681ba214f5c2e450813913fd (diff)
downloadcpython-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.py4
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)