summaryrefslogtreecommitdiff
path: root/src/gperf_fold_key_conv.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-12-21 13:48:35 +0100
committerJörg Frings-Fürst <debian@jff.email>2018-12-21 13:48:35 +0100
commit70de057dbb5ea79536834e156f534279347f96f3 (patch)
treee7fc439a3c893ffe8358d3d0c26a112d4b4cf89d /src/gperf_fold_key_conv.py
parentc9b3c26db59d89e320a6eb86d9558051ecba0900 (diff)
New upstream version 6.9.1upstream/6.9.1
Diffstat (limited to 'src/gperf_fold_key_conv.py')
-rwxr-xr-xsrc/gperf_fold_key_conv.py8
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