summaryrefslogtreecommitdiff
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-01-11 09:09:07 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2013-01-11 09:09:07 +0200
commit405079213b7b35145ec5a437cd8b99528c3e4841 (patch)
tree5f322e834a73771b293658342562a468c5edc6d3 /Doc/library/string.rst
parent444d153d7ed9da2320e1fac91c4eb8666fb914f3 (diff)
downloadcpython-git-405079213b7b35145ec5a437cd8b99528c3e4841.tar.gz
#16154: fix some doctests in Doc/library. Patch by Ravi Sinha.
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r--Doc/library/string.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index d821339f40..5778980fee 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -610,7 +610,7 @@ Nesting arguments and more complex examples::
3232235521
>>>
>>> width = 5
- >>> for num in range(5,12):
+ >>> for num in range(5,12): #doctest: +NORMALIZE_WHITESPACE
... for base in 'dXob':
... print('{0:{width}{base}}'.format(num, base=base, width=width), end=' ')
... print()
@@ -698,7 +698,7 @@ Here is an example of how to use a Template:
>>> Template('Give $who $100').substitute(d)
Traceback (most recent call last):
[...]
- ValueError: Invalid placeholder in string: line 1, col 10
+ ValueError: Invalid placeholder in string: line 1, col 11
>>> Template('$who likes $what').substitute(d)
Traceback (most recent call last):
[...]