diff options
Diffstat (limited to 'Lib/formatter.py')
-rw-r--r-- | Lib/formatter.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/formatter.py b/Lib/formatter.py index 99b4740..bb8ad20 100644 --- a/Lib/formatter.py +++ b/Lib/formatter.py @@ -433,10 +433,7 @@ def test(file = None): fp = open(sys.argv[1]) else: fp = sys.stdin - while 1: - line = fp.readline() - if not line: - break + for line in fp: if line == '\n': f.end_paragraph(1) else: |