[oe-commits] [openembedded-core] 30/41: spdx.bbclass: Replace deprecated string.replace with str.replace

git at git.openembedded.org git at git.openembedded.org
Wed Jul 18 09:20:32 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 8538aabf62d866f36764b4b136ee8575308df690
Author: Olof Johansson <olof.johansson at axis.com>
AuthorDate: Mon Jul 16 17:05:53 2018 +0200

    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 <olofjn at axis.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/spdx.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/spdx.bbclass b/meta/classes/spdx.bbclass
index c5f544d..ab2eaa5 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 = {}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list