diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2023-11-24 14:42:52 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-01 11:48:25 +0000 |
| commit | 505dad0d6714d03ea976d2eb076f88e8b55ea786 (patch) | |
| tree | c0edfb284c73faade33f93d76720105321b4357b | |
| parent | 3f96cab3c4c561464d074af639eb61c9fb3c8c60 (diff) | |
| download | poky-505dad0d6714d03ea976d2eb076f88e8b55ea786.tar.gz | |
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 <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/rust/rust_1.70.0.bb | 5 |
1 files changed, 1 insertions, 4 deletions
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" | |||
| 72 | 72 | ||
| 73 | python do_configure() { | 73 | python do_configure() { |
| 74 | import json | 74 | import json |
| 75 | try: | 75 | import configparser |
| 76 | import configparser | ||
| 77 | except ImportError: | ||
| 78 | import ConfigParser as configparser | ||
| 79 | 76 | ||
| 80 | # toml is rather similar to standard ini like format except it likes values | 77 | # toml is rather similar to standard ini like format except it likes values |
| 81 | # that look more JSON like. So for our purposes simply escaping all values | 78 | # that look more JSON like. So for our purposes simply escaping all values |
