Skip to content

Commit

Permalink
parse: features are only direct children of the root node
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Aug 24, 2024
1 parent 92fce6b commit 8dc0d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glad/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def enums(self):
@memoize(method=True)
def features(self):
features = defaultdict(dict)
for element in self.root.iter('feature'):
for element in self.root.iterfind('feature'):
num = Version(*map(int, element.attrib['number'].split('.')))
for api in element.attrib['api'].split(','):
features[api][num] = Feature.from_element(element)
Expand Down

0 comments on commit 8dc0d4d

Please sign in to comment.