summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
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!"