diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-18 21:52:33 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:01 +0100 |
commit | ed7abe6b9a2ff81d320e7c63841487d37e61b5a5 (patch) | |
tree | 783819e427cc29027d91ccd7ff0d6e7ba25b43ca /scripts/lib/recipetool/create.py | |
parent | 7eab022d4b484aec40998f95835ba46c5da168cf (diff) | |
download | poky-ed7abe6b9a2ff81d320e7c63841487d37e61b5a5.tar.gz |
scripts: Replace basestring -> str for python3
Python 3 doesn't have basestring type as all string
are unicode strings.
(From OE-Core rev: e8cfab060f4ff3c4c16387871354d407910e87aa)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r-- | scripts/lib/recipetool/create.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 5a37d18209..e3e01e385a 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -167,7 +167,7 @@ class RecipeHandler(object): | |||
167 | unmappedpc = [] | 167 | unmappedpc = [] |
168 | pcdeps = list(set(pcdeps)) | 168 | pcdeps = list(set(pcdeps)) |
169 | for pcdep in pcdeps: | 169 | for pcdep in pcdeps: |
170 | if isinstance(pcdep, basestring): | 170 | if isinstance(pcdep, str): |
171 | recipe = recipemap.get(pcdep, None) | 171 | recipe = recipemap.get(pcdep, None) |
172 | if recipe: | 172 | if recipe: |
173 | deps.append(recipe) | 173 | deps.append(recipe) |