mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Python: Revert manual pickle modeling
This reverts commit 62910f0cab525ca4d4901c4c27f6e6b22c3375fc.
This reverts commit 75a8197879ec47094d9b18f3dab7bcc1c1cdba28.
We don't find `kombu.serialization.pickle_load` since we respect
`__all__`. I think that was an attempt to not flood the captured
modeling with useless re-exports, but I think we've ended up doing that
anyway... we should consider to remove that restriction!
see 21d7df29c7/kombu/serialization.py (L29)
This commit is contained in:
@@ -464,6 +464,24 @@ class LxmlETreeAlias extends FindSubclassesSpec {
|
||||
override API::Node getAlreadyModeledClass() { result = Lxml::etreeRef() }
|
||||
}
|
||||
|
||||
class PickleAlias extends FindSubclassesSpec {
|
||||
PickleAlias() { this = "pickle~Alias" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() { result = StdlibPrivate::pickle() }
|
||||
}
|
||||
|
||||
class PickleLoadAlias extends FindSubclassesSpec {
|
||||
PickleLoadAlias() { this = "pickle.load~Alias" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() { result = StdlibPrivate::pickle_load() }
|
||||
}
|
||||
|
||||
class PickleLoadsAlias extends FindSubclassesSpec {
|
||||
PickleLoadsAlias() { this = "pickle.loads~Alias" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() { result = StdlibPrivate::pickle_loads() }
|
||||
}
|
||||
|
||||
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