summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-10-28 18:21:01 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-10-28 18:28:40 +0100
commitc679105fd9d26b2266ed7f46b652ae27e9539bbc (patch)
tree5ca1e49f4b6e1ae2e2d24001a6f0b662c2c6482b /kconfiglib.py
parente0256b65a939732b768d594f466a3b380fc26515 (diff)
Replace 'indent == 0' with 'not indent'
Tiny bit faster and smaller. Clear in context.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index ced3e9a..ff33f30 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2856,7 +2856,7 @@ class Kconfig(object):
return
indent = _indentation(line)
- if indent == 0:
+ if not indent:
# If the first non-empty lines has zero indent, there is no help
# text
self._warn(_name_and_loc(node.item) +