summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/files/ext-sdk-prepare.py2
-rw-r--r--scripts/lib/devtool/__init__.py2
-rw-r--r--scripts/lib/recipetool/create.py2
-rw-r--r--scripts/lib/recipetool/create_buildsys_python.py6
-rw-r--r--scripts/lib/scriptutils.py2
5 files changed, 7 insertions, 7 deletions
diff --git a/meta/files/ext-sdk-prepare.py b/meta/files/ext-sdk-prepare.py
index 605e2ebefa..bf0d03336b 100644
--- a/meta/files/ext-sdk-prepare.py
+++ b/meta/files/ext-sdk-prepare.py
@@ -8,7 +8,7 @@ import subprocess
8 8
9def exec_watch(cmd, **options): 9def exec_watch(cmd, **options):
10 """Run program with stdout shown on sys.stdout""" 10 """Run program with stdout shown on sys.stdout"""
11 if isinstance(cmd, basestring) and not "shell" in options: 11 if isinstance(cmd, str) and not "shell" in options:
12 options["shell"] = True 12 options["shell"] = True
13 13
14 process = subprocess.Popen( 14 process = subprocess.Popen(
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py
index 506d95b0f7..6f5bb8dba0 100644
--- a/scripts/lib/devtool/__init__.py
+++ b/scripts/lib/devtool/__init__.py
@@ -59,7 +59,7 @@ def exec_build_env_command(init_path, builddir, cmd, watch=False, **options):
59def exec_watch(cmd, **options): 59def exec_watch(cmd, **options):
60 """Run program with stdout shown on sys.stdout""" 60 """Run program with stdout shown on sys.stdout"""
61 import bb 61 import bb
62 if isinstance(cmd, basestring) and not "shell" in options: 62 if isinstance(cmd, str) and not "shell" in options:
63 options["shell"] = True 63 options["shell"] = True
64 64
65 process = subprocess.Popen( 65 process = subprocess.Popen(
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)
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py
index cc3b5a45fd..5cbea2abba 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -245,7 +245,7 @@ class PythonRecipeHandler(RecipeHandler):
245 if field not in self.bbvar_map: 245 if field not in self.bbvar_map:
246 continue 246 continue
247 247
248 if isinstance(values, basestring): 248 if isinstance(values, str):
249 value = values 249 value = values
250 else: 250 else:
251 value = ' '.join(str(v) for v in values if v) 251 value = ' '.join(str(v) for v in values if v)
@@ -436,7 +436,7 @@ class PythonRecipeHandler(RecipeHandler):
436 return value 436 return value
437 437
438 value = info[variable] 438 value = info[variable]
439 if isinstance(value, basestring): 439 if isinstance(value, str):
440 new_value = replace_value(search, replace, value) 440 new_value = replace_value(search, replace, value)
441 if new_value is None: 441 if new_value is None:
442 del info[variable] 442 del info[variable]
@@ -706,7 +706,7 @@ class LiteralAstTransform(ast.NodeTransformer):
706def has_non_literals(value): 706def has_non_literals(value):
707 if isinstance(value, ast.AST): 707 if isinstance(value, ast.AST):
708 return True 708 return True
709 elif isinstance(value, basestring): 709 elif isinstance(value, str):
710 return False 710 return False
711 elif hasattr(value, 'values'): 711 elif hasattr(value, 'values'):
712 return any(has_non_literals(v) for v in value.values()) 712 return any(has_non_literals(v) for v in value.values())
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py
index aef19d3d73..bd082d8581 100644
--- a/scripts/lib/scriptutils.py
+++ b/scripts/lib/scriptutils.py
@@ -103,7 +103,7 @@ def fetch_uri(d, uri, destdir, srcrev=None):
103 return ret 103 return ret
104 104
105def run_editor(fn): 105def run_editor(fn):
106 if isinstance(fn, basestring): 106 if isinstance(fn, str):
107 params = '"%s"' % fn 107 params = '"%s"' % fn
108 else: 108 else:
109 params = '' 109 params = ''