There is no need to import os in do_update_crates(), as this is already done before.
Signed-off-by: Martin Schwan <[email protected]> --- Changes in v2: - Split changes into multiple patches, for improved readability --- meta/classes-recipe/cargo-update-recipe-crates.bbclass | 1 - 1 file changed, 1 deletion(-) diff --git a/meta/classes-recipe/cargo-update-recipe-crates.bbclass b/meta/classes-recipe/cargo-update-recipe-crates.bbclass index 6e933d3afc..be41579552 100644 --- a/meta/classes-recipe/cargo-update-recipe-crates.bbclass +++ b/meta/classes-recipe/cargo-update-recipe-crates.bbclass @@ -55,7 +55,6 @@ python do_update_crates() { c_list += '\n' return c_list - import os crates = d.expand('# Autogenerated with \'bitbake -c update_crates ${PN}\'\n\n') found = False for root, dirs, files in os.walk(cargo_lock_src_dir): -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#227576): https://lists.openembedded.org/g/openembedded-core/message/227576 Mute This Topic: https://lists.openembedded.org/mt/116743599/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
