tools/spec: avoid importing object 'as constant'
This commit is contained in:
parent
d288fe9b91
commit
82b7bad661
@ -4,7 +4,7 @@ import sys
|
||||
import logging
|
||||
from typing import List, Dict, Set
|
||||
|
||||
import xml.etree.ElementTree as ET
|
||||
import xml.etree.ElementTree
|
||||
|
||||
|
||||
###############################################################################
|
||||
@ -890,7 +890,7 @@ def main():
|
||||
|
||||
# Get a copy of the specification XML
|
||||
with open(args.src, 'r') as src:
|
||||
tree = ET.parse(src)
|
||||
tree = xml.etree.ElementTree.parse(src)
|
||||
root = tree.getroot()
|
||||
|
||||
# Find a parser for each of the nodes in the XML
|
||||
|
Loading…
Reference in New Issue
Block a user