diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-19 21:48:40 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-19 21:48:40 +0100 |
| commit | 4b8d5887667fd24dba8dee15f326f908f3ab142b (patch) | |
| tree | 739fff8ed857a0444509b2a32cbb142c520c8559 | |
| parent | 48bc8e4a7ba7d5ea4360b22a3527a3b028c6ce3b (diff) | |
Simplify loop in _T_HELP
Bit easier to read.
| -rw-r--r-- | kconfiglib.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index db0ffb0..1a78b3a 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1752,14 +1752,14 @@ class Kconfig(object): while 1: line = self._next_help_line() - - if not line or \ - (not line.isspace() and _indentation(line) < indent): - node.help = "\n".join(help_lines).rstrip() + "\n" + if not (line and (line.isspace() or \ + _indentation(line) >= indent)): break help_lines.append(_dedent_rstrip(line, indent)) + node.help = "\n".join(help_lines).rstrip() + "\n" + if not line: break |
