Python: Refactor references to ElementTree

This would probably be better as a module, but I wanted to verify
first that this would yield the right results.
This commit is contained in:
Taus
2023-10-13 13:30:55 +00:00
committed by Rasmus Wriedt Larsen
parent d29879a844
commit 5b9d56774b
2 changed files with 19 additions and 41 deletions

View File

@@ -451,6 +451,12 @@ class RestFrameworkApiException extends FindSubclassesSpec {
override API::Node getAlreadyModeledClass() { result = RestFramework::ApiException::classRef() }
}
class ElementTree extends FindSubclassesSpec {
ElementTree() { this = "xml.etree.ElementTree~Subclass" }
override API::Node getAlreadyModeledClass() { result = StdlibPrivate::elementTreeClassRef() }
}
bindingset[fullyQualified]
predicate fullyQualifiedToYamlFormat(string fullyQualified, string type2, string path) {
exists(int firstDot | firstDot = fullyQualified.indexOf(".", 0, 0) |