summaryrefslogtreecommitdiffstats
path: root/meta/classes/spdx.bbclass
diff options
context:
space:
mode:
authorOlof Johansson <olof.johansson@axis.com>2018-07-16 17:05:53 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-18 10:18:42 +0100
commita60a3c11f487580f3321339f47408fcf1c36c049 (patch)
treeb23f94e70bea3c65d3fd344e1220cd30e8af03ad /meta/classes/spdx.bbclass
parentc24db0fd6ef197c17c96f67fa10fde0adc5c3084 (diff)
downloadpoky-a60a3c11f487580f3321339f47408fcf1c36c049.tar.gz
spdx.bbclass: Replace deprecated string.replace with str.replace
The string.replace function is removed in python3. Instead, the str method "replace" should be used instead. (From OE-Core rev: 8538aabf62d866f36764b4b136ee8575308df690) Signed-off-by: Olof Johansson <olofjn@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/spdx.bbclass')
-rw-r--r--meta/classes/spdx.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/spdx.bbclass b/meta/classes/spdx.bbclass
index c5f544d2a4..ab2eaa5c0c 100644
--- a/meta/classes/spdx.bbclass
+++ b/meta/classes/spdx.bbclass
@@ -226,7 +226,7 @@ def run_fossology(foss_command, full_spdx):
226 except subprocess.CalledProcessError as e: 226 except subprocess.CalledProcessError as e:
227 return None 227 return None
228 228
229 foss_output = string.replace(foss_output, '\r', '') 229 foss_output = foss_output.replace('\r', '')
230 230
231 # Package info 231 # Package info
232 package_info = {} 232 package_info = {}