]> granicus.if.org Git - python/commitdiff
Refrain from using inline suites.
authorGeorg Brandl <georg@python.org>
Fri, 15 Oct 2010 15:32:05 +0000 (15:32 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 15 Oct 2010 15:32:05 +0000 (15:32 +0000)
Doc/tutorial/controlflow.rst

index bd88ad6ff50179181c11b59b9b1e4d06d5c7b8f4..e33a59619a9fcb9bbe94a4779319094023808171 100644 (file)
@@ -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::