mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
3f96cab3c4
commit
505dad0d67
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user