summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/codeparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index c887a3ca08..84d1c09f21 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -21,13 +21,13 @@ def check_indent(codestr):
21 """If the code is indented, add a top level piece of code to 'remove' the indentation""" 21 """If the code is indented, add a top level piece of code to 'remove' the indentation"""
22 22
23 i = 0 23 i = 0
24 while codestr[i] in ["\n", " ", " "]: 24 while codestr[i] in ["\n", "\t", " "]:
25 i = i + 1 25 i = i + 1
26 26
27 if i == 0: 27 if i == 0:
28 return codestr 28 return codestr
29 29
30 if codestr[i-1] is " " or codestr[i-1] is " ": 30 if codestr[i-1] == "\t" or codestr[i-1] == " ":
31 return "if 1:\n" + codestr 31 return "if 1:\n" + codestr
32 32
33 return codestr 33 return codestr