... | ... |
@@ -121,6 +121,7 @@ import os |
121 | 121 |
import sys |
122 | 122 |
import collections |
123 | 123 |
import re |
124 |
+import functools |
|
124 | 125 |
import subprocess |
125 | 126 |
import shutil |
126 | 127 |
import shlex |
... | ... |
@@ -422,6 +423,7 @@ def enum(xml, value): |
422 | 423 |
|
423 | 424 |
|
424 | 425 |
### `supports` |
426 |
+@functools.cache |
|
425 | 427 |
def supports(xml, name, use_aliases=True): |
426 | 428 |
category, attrib = CATEGORY_ATTRIBS['EXTENSION'] |
427 | 429 |
if xml.xpath(f"{category}[@{attrib}='{name}']"): |