summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.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:24:01 +0100
commited7abe6b9a2ff81d320e7c63841487d37e61b5a5 (patch)
tree783819e427cc29027d91ccd7ff0d6e7ba25b43ca /scripts/lib/scriptutils.py
parent7eab022d4b484aec40998f95835ba46c5da168cf (diff)
downloadpoky-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/scriptutils.py')
-rw-r--r--scripts/lib/scriptutils.py2
1 files changed, 1 insertions, 1 deletions
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 = ''