summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-15 15:32:05 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-15 15:32:05 (GMT)
commit70543acfa1bce2e5f448d8d0085df595bfa9a2f9 (patch)
treeb3028edce1038e9ebb5a731be6643a8df7fc596d /Doc
parent91d2a3fb0e248872bcb809070257f3036ff0eadb (diff)
downloadcpython-70543acfa1bce2e5f448d8d0085df595bfa9a2f9.zip
cpython-70543acfa1bce2e5f448d8d0085df595bfa9a2f9.tar.gz
cpython-70543acfa1bce2e5f448d8d0085df595bfa9a2f9.tar.bz2
Refrain from using inline suites.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/controlflow.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index bd88ad6..e33a596 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -458,10 +458,12 @@ function like this::
def cheeseshop(kind, *arguments, **keywords):
print("-- Do you have any", kind, "?")
print("-- I'm sorry, we're all out of", kind)
- for arg in arguments: print(arg)
+ for arg in arguments:
+ print(arg)
print("-" * 40)
keys = sorted(keywords.keys())
- for kw in keys: print(kw, ":", keywords[kw])
+ for kw in keys:
+ print(kw, ":", keywords[kw])
It could be called like this::