mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 05:57:33 +00:00
config_tools: adapt to elementpath >= 4.0.0
Starting from elementpath 4.0.0, the XPath2Parser class no longer has a SYMBOLS member and completeness checking based on that are removed as well. This patch updates the elementpath_overlay in the config tools to fix the compilation issue when using recent elementpath versions. Tracked-On: #8368 Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
d4fa35ad5b
commit
de0a765010
@ -21,6 +21,7 @@ import library.rdt as rdt
|
|||||||
BaseParser = elementpath.XPath2Parser
|
BaseParser = elementpath.XPath2Parser
|
||||||
|
|
||||||
class CustomParser(BaseParser):
|
class CustomParser(BaseParser):
|
||||||
|
if hasattr(BaseParser, "SYMBOLS"):
|
||||||
SYMBOLS = BaseParser.SYMBOLS | {
|
SYMBOLS = BaseParser.SYMBOLS | {
|
||||||
# Bit-wise operations
|
# Bit-wise operations
|
||||||
'bitwise-and',
|
'bitwise-and',
|
||||||
|
Loading…
Reference in New Issue
Block a user