From 24714ad985058e670ef04acdef353c7748cf7714 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 17 Nov 2017 21:18:19 +0100 Subject: Simplify _parse_properties() loop --- kconfiglib.py | 6 +----- 1 file changed, 1 insertion(+), 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() -- cgit v1.2.3