From: Olof Johansson Date: Mon, 16 Jul 2018 15:05:53 +0000 (+0200) Subject: spdx.bbclass: Replace deprecated string.replace with str.replace X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~17331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8538aabf62d866f36764b4b136ee8575308df690;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Olof Johansson Signed-off-by: Ross Burton --- diff --git a/meta/classes/spdx.bbclass b/meta/classes/spdx.bbclass index c5f544d2a4f..ab2eaa5c0c1 100644 --- a/meta/classes/spdx.bbclass +++ b/meta/classes/spdx.bbclass @@ -226,7 +226,7 @@ def run_fossology(foss_command, full_spdx): except subprocess.CalledProcessError as e: return None - foss_output = string.replace(foss_output, '\r', '') + foss_output = foss_output.replace('\r', '') # Package info package_info = {}