aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-18 21:52:33 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:10:03 +0100
commite8cfab060f4ff3c4c16387871354d407910e87aa (patch)
tree59ae168cb8d2c7ef9fa2a1d18f42ea99c540d14c /scripts/lib/recipetool/create.py
parent25d4d8274bac696a484f83d7f3ada778cf95f4d0 (diff)
downloadopenembedded-core-contrib-e8cfab060f4ff3c4c16387871354d407910e87aa.tar.gz
openembedded-core-contrib-e8cfab060f4ff3c4c16387871354d407910e87aa.tar.bz2
openembedded-core-contrib-e8cfab060f4ff3c4c16387871354d407910e87aa.zip
scripts: Replace basestring -> str for python3
Python 3 doesn't have basestring type as all string are unicode strings. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py2
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):
unmappedpc = []
pcdeps = list(set(pcdeps))
for pcdep in pcdeps:
- if isinstance(pcdep, basestring):
+ if isinstance(pcdep, str):
recipe = recipemap.get(pcdep, None)
if recipe:
deps.append(recipe)