diff options
Diffstat (limited to 'Lib/urlparse.py')
-rw-r--r-- | Lib/urlparse.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py index 0c05dfe..30de699 100644 --- a/Lib/urlparse.py +++ b/Lib/urlparse.py @@ -305,9 +305,7 @@ def test(): else: from io import StringIO fp = StringIO(test_input) - while 1: - line = fp.readline() - if not line: break + for line in fp: words = line.split() if not words: continue |