summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-17 21:18:19 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-17 21:24:19 +0100
commit24714ad985058e670ef04acdef353c7748cf7714 (patch)
treec07a3e9e4f181f331460648a67a1d7e6721ab9e2
parent80b91983c97db284ce39a695cc0258902e1d70a9 (diff)
Simplify _parse_properties() loop
-rw-r--r--kconfiglib.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 08f73d9..a23a8c6 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1614,11 +1614,7 @@ class Kconfig(object):
# properties above.
node.dep = self.y
- while 1:
- # Advance to the next line
- if not self._next_line():
- break
-
+ while self._next_line():
self._tokenize()
t0 = self._next_token()