From 8538aabf62d866f36764b4b136ee8575308df690 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Mon, 16 Jul 2018 17:05:53 +0200 Subject: 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 --- meta/classes/spdx.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') 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): except subprocess.CalledProcessError as e: return None - foss_output = string.replace(foss_output, '\r', '') + foss_output = foss_output.replace('\r', '') # Package info package_info = {} -- cgit 1.2.3-korg