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:
Olof Johansson
2018-07-16 17:05:53 +02:00
committed by Richard Purdie
parent c24db0fd6e
commit a60a3c11f4

View File

@@ -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 = {}