summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-03 21:31:47 (GMT)
committerGeorg Brandl <georg@python.org>2009-01-03 21:31:47 (GMT)
commit06788c9fe4abfdc97d8a05bf3d8a41ef321e8c3b (patch)
tree15223833b7a65c16ebd96233baa98d7997399dd9 /Doc/tutorial
parentd509788f98e5ee6ecc638daf3be27493ae74640a (diff)
downloadcpython-06788c9fe4abfdc97d8a05bf3d8a41ef321e8c3b.zip
cpython-06788c9fe4abfdc97d8a05bf3d8a41ef321e8c3b.tar.gz
cpython-06788c9fe4abfdc97d8a05bf3d8a41ef321e8c3b.tar.bz2
Fix a few remaining problems found by rstlint.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/classes.rst2
-rw-r--r--Doc/tutorial/datastructures.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index d6842e0..7d106fc 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -789,7 +789,7 @@ easy to create::
f
l
o
- g
+ g
Anything that can be done with generators can also be done with class based
iterators as described in the previous section. What makes generators so
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 454472c..75163d0 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -519,7 +519,7 @@ with the :func:`zip` function. ::
>>> answers = ['lancelot', 'the holy grail', 'blue']
>>> for q, a in zip(questions, answers):
... print('What is your {0}? It is {1}.'.format(q, a))
- ...
+ ...
What is your name? It is lancelot.
What is your quest? It is the holy grail.
What is your favorite color? It is blue.
@@ -542,7 +542,7 @@ returns a new sorted list while leaving the source unaltered. ::
>>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
>>> for f in sorted(set(basket)):
... print(f)
- ...
+ ...
apple
banana
orange