diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-12-21 20:06:28 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-12-21 20:06:28 +0100 |
commit | f883fa5bd37b6420f5dc25027a68289c64028063 (patch) | |
tree | 80452d3b1840e553402538830e903ed9fecdb3a8 /src/gperf_fold_key_conv.py | |
parent | 66dfd6613394a8903701840bbc9d67de537e597e (diff) | |
parent | f1aff0cc17934fa45d9520dae6986562e033cb8f (diff) |
Merge branch 'release/debian/6.9.1-1'debian/6.9.1-1
Diffstat (limited to 'src/gperf_fold_key_conv.py')
-rwxr-xr-x | src/gperf_fold_key_conv.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gperf_fold_key_conv.py b/src/gperf_fold_key_conv.py index 376d343..f453186 100755 --- a/src/gperf_fold_key_conv.py +++ b/src/gperf_fold_key_conv.py @@ -54,11 +54,13 @@ def parse_line(s, key_len): def parse_file(f, key_len): print "/* This file was converted by gperf_fold_key_conv.py\n from gperf output file. */" - line = f.readline() - while line: + while True: + line = f.readline() + if not line: + break + s = parse_line(line, key_len) print s - line = f.readline() # main |