diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/taskdata.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py index fdd55ee83e..d2a3505787 100644 --- a/bitbake/lib/bb/taskdata.py +++ b/bitbake/lib/bb/taskdata.py | |||
@@ -24,6 +24,7 @@ Task data collection and handling | |||
24 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 24 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
25 | 25 | ||
26 | import logging | 26 | import logging |
27 | import re | ||
27 | import bb | 28 | import bb |
28 | 29 | ||
29 | logger = logging.getLogger("BitBake.TaskData") | 30 | logger = logging.getLogger("BitBake.TaskData") |
@@ -33,13 +34,8 @@ def re_match_strings(target, strings): | |||
33 | Whether or not the string 'target' matches | 34 | Whether or not the string 'target' matches |
34 | any one string of the strings which can be regular expression string | 35 | any one string of the strings which can be regular expression string |
35 | """ | 36 | """ |
36 | import re | 37 | return any(name == target or re.search(name, target) != None |
37 | 38 | for name in strings) | |
38 | for name in strings: | ||
39 | if (name==target or | ||
40 | re.search(name, target)!=None): | ||
41 | return True | ||
42 | return False | ||
43 | 39 | ||
44 | class TaskData: | 40 | class TaskData: |
45 | """ | 41 | """ |