diff options
Diffstat (limited to 'Lib/keyword.py')
-rwxr-xr-x | Lib/keyword.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/keyword.py b/Lib/keyword.py index 9c49cd2..a7abe2b 100755 --- a/Lib/keyword.py +++ b/Lib/keyword.py @@ -64,9 +64,7 @@ def main(): fp = open(iptfile) strprog = re.compile('"([^"]+)"') lines = [] - while 1: - line = fp.readline() - if not line: break + for line in fp: if '{1, "' in line: match = strprog.search(line) if match: |