From 79a1ffde9b3ae4b7dccdf2a64c6fc7cb7c243211 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Fri, 8 Aug 2014 17:23:32 +0300 Subject: #22170: avoid printing newlines twice in tutorial example. --- Doc/tutorial/classes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 6c71d80..11e07e3 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -802,7 +802,7 @@ using a :keyword:`for` statement:: for char in "123": print(char) for line in open("myfile.txt"): - print(line) + print(line, end='') This style of access is clear, concise, and convenient. The use of iterators pervades and unifies Python. Behind the scenes, the :keyword:`for` statement -- cgit v0.12