mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
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:
committed by
Rasmus Wriedt Larsen
parent
d29879a844
commit
5b9d56774b
@@ -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) |
|
||||
|
||||
Reference in New Issue
Block a user