Message ID | 20231124144253.14955-1-alex.kiernan@gmail.com |
---|---|
State | Accepted, archived |
Commit | c7c17dcaf452abbf49fd05c15cd56aa4b4382284 |
Headers | show |
Series | [1/2] rust: Delete python2 configparser code path | expand |
diff --git a/meta/recipes-devtools/rust/rust_1.70.0.bb b/meta/recipes-devtools/rust/rust_1.70.0.bb index 16d433910f8e..2e34b3de1c45 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
We no longer support python2, remove the python2 fallback code. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> --- meta/recipes-devtools/rust/rust_1.70.0.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)