summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 7ad76fd..b9264e4 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2977,12 +2977,12 @@ class Kconfig(object):
while 1:
line = readline()
- if not line:
- break
-
if line.isspace():
# No need to preserve the exact whitespace in these
add_line("\n")
+ elif not line:
+ # End of file
+ break
else:
expline = line.expandtabs()
if len_(expline) - len_(expline.lstrip()) < indent: