From 505dad0d6714d03ea976d2eb076f88e8b55ea786 Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Fri, 24 Nov 2023 14:42:52 +0000 Subject: rust: Delete python2 configparser code path We no longer support python2, remove the python2 fallback code. (From OE-Core rev: c7c17dcaf452abbf49fd05c15cd56aa4b4382284) Signed-off-by: Alex Kiernan Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-devtools/rust/rust_1.70.0.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/rust/rust_1.70.0.bb b/meta/recipes-devtools/rust/rust_1.70.0.bb index a7efd2f7f0..6a28dc926e 100644 --- a/meta/recipes-devtools/rust/rust_1.70.0.bb +++ b/meta/recipes-devtools/rust/rust_1.70.0.bb @@ -72,10 +72,7 @@ do_rust_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER" python do_configure() { import json - try: - import configparser - except ImportError: - import ConfigParser as configparser + import configparser # toml is rather similar to standard ini like format except it likes values # that look more JSON like. So for our purposes simply escaping all values -- cgit v1.2.3-54-g00ecf