mirror of
https://github.com/github/codeql.git
synced 2026-03-19 05:56:46 +01:00
17 lines
277 B
Plaintext
17 lines
277 B
Plaintext
|
|
import python
|
|
import semmle.python.pointsto.MRO
|
|
|
|
ClassList mro(ClassObject cls) {
|
|
if cls.isNewStyle() then
|
|
result = new_style_mro(cls)
|
|
else
|
|
result = old_style_mro(cls)
|
|
}
|
|
|
|
from ClassObject cls
|
|
where not cls.isBuiltin()
|
|
|
|
select cls.toString(), mro(cls)
|
|
|