mirror of
https://github.com/github/codeql.git
synced 2026-01-17 16:34:49 +01:00
13 lines
365 B
Plaintext
13 lines
365 B
Plaintext
import python
|
|
import semmle.python.pointsto.MRO
|
|
import semmle.python.pointsto.PointsTo
|
|
import semmle.python.objects.ObjectInternal
|
|
|
|
ClassList mro(ClassObjectInternal cls) {
|
|
if Types::isNewStyle(cls) then result = Mro::newStyleMro(cls) else result = Mro::oldStyleMro(cls)
|
|
}
|
|
|
|
from ClassObjectInternal cls
|
|
where not cls.isBuiltin()
|
|
select cls.toString(), mro(cls)
|