summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-07 20:54:48 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-07-07 20:54:48 (GMT)
commit4e0e1b6a540e664e89739456db4c706701bf062b (patch)
tree6a144e54fe6f0055d6e412181df0bbad458f8b10 /Lib/doctest.py
parentb7e898a0e2a8d4077cbabeada039200fde5ada60 (diff)
downloadcpython-4e0e1b6a540e664e89739456db4c706701bf062b.zip
cpython-4e0e1b6a540e664e89739456db4c706701bf062b.tar.gz
cpython-4e0e1b6a540e664e89739456db4c706701bf062b.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index acde9c1..611897d 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -205,7 +205,7 @@ Bummers:
docstring, which will preserve your backslahses exactly as you type
them:
- >>> def f(x):
+ >>> def f(x):
... r'''Backslashes in a raw docstring: m\n'''
>>> print f.__doc__
Backslashes in a raw docstring: m\n
@@ -215,11 +215,11 @@ Bummers:
Alternatively, you can double each backslash in the doctest version
(and not use a raw string):
- >>> def f(x):
+ >>> def f(x):
... '''Backslashes in a raw docstring: m\\n'''
>>> print f.__doc__
Backslashes in a raw docstring: m\n
-
+
The starting column doesn't matter:
>>> assert "Easy!"