summaryrefslogtreecommitdiff
path: root/scripts/lib/devtool
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/devtool
parent25d4d8274bac696a484f83d7f3ada778cf95f4d0 (diff)
downloadopenembedded-core-e8cfab060f4ff3c4c16387871354d407910e87aa.tar.gz
openembedded-core-e8cfab060f4ff3c4c16387871354d407910e87aa.tar.bz2
openembedded-core-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/devtool')
-rw-r--r--scripts/lib/devtool/__init__.py2
1 files changed, 1 insertions, 1 deletions
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):
def exec_watch(cmd, **options):
"""Run program with stdout shown on sys.stdout"""
import bb
- if isinstance(cmd, basestring) and not "shell" in options:
+ if isinstance(cmd, str) and not "shell" in options:
options["shell"] = True
process = subprocess.Popen(