tools/spec: avoid importing object 'as constant'

This commit is contained in:
Danny Robson 2019-01-05 15:13:13 +11:00
parent d288fe9b91
commit 82b7bad661

View File

@ -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