mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c24db0fd6e
commit
a60a3c11f4
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user