]> git.proxmox.com Git - mirror_edk2.git/commit
python: Replace distutils.utils.split_quotes with shlex.split
authorCole <crobinso@redhat.com>
Fri, 23 Jul 2021 20:02:27 +0000 (04:02 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 2 Aug 2021 03:09:59 +0000 (03:09 +0000)
commit0b1b0a9674e27c858f05436ed92250f4498245cf
tree62352c439bc42669ceab7c0b692383df4a162f02
parent2e1fb41339034a7b71a3c7fa097a1ff785dfe981
python: Replace distutils.utils.split_quotes with shlex.split

distutils is deprecated and may be removed in python 3.12.
Use shlex.split which has been around since python 2.3.

shlex.split does not split on all the ASCII control characters that
split_quoted will[1], but for edk2 usage I don't think that matters.

[1] https://stackoverflow.com/questions/54999301/what-is-the-difference-between-distutils-util-split-quoted-and-shlex-split

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/UniClassObject.py
BaseTools/Source/Python/UPT/Library/UniClassObject.py