mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Python: Modernise twisted library
This commit is contained in:
committed by
Rasmus Wriedt Larsen
parent
4e3c183676
commit
ac55e6aba6
@@ -2,6 +2,6 @@ import python
|
||||
import semmle.python.TestUtils
|
||||
import semmle.python.web.twisted.Twisted
|
||||
|
||||
from ClassObject cls
|
||||
from ClassValue cls
|
||||
where cls = aTwistedRequestHandlerClass()
|
||||
select cls.toString(), remove_library_prefix(cls.getPyClass().getLocation())
|
||||
select cls.toString(), remove_library_prefix(cls.getScope().getLocation())
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
| myrender | Function myrender | test.py:24 |
|
||||
| render | Function render | test.py:4 |
|
||||
| render | Function render | test.py:28 |
|
||||
| render | Function render | test.py:39 |
|
||||
| render | Function render | test.py:43 |
|
||||
| render_GET | Function render_GET | test.py:9 |
|
||||
| render_POST | Function render_POST | test.py:16 |
|
||||
| render_POST | Function render_POST | test.py:31 |
|
||||
| myrender | Function MyRequestHandler2.myrender | test.py:24 |
|
||||
| render | Function MyRequestHandler1.render | test.py:4 |
|
||||
| render | Function MyRequestHandler3.render | test.py:28 |
|
||||
| render | Function MyRequestHandler4.render | test.py:39 |
|
||||
| render | Function MyRequestHandler5.render | test.py:43 |
|
||||
| render_GET | Function MyRequestHandler1.render_GET | test.py:9 |
|
||||
| render_POST | Function MyRequestHandler1.render_POST | test.py:16 |
|
||||
| render_POST | Function MyRequestHandler3.render_POST | test.py:31 |
|
||||
|
||||
@@ -2,6 +2,6 @@ import python
|
||||
import semmle.python.TestUtils
|
||||
import semmle.python.web.twisted.Twisted
|
||||
|
||||
from FunctionObject func, string name
|
||||
from FunctionValue func, string name
|
||||
where func = getTwistedRequestHandlerMethod(name)
|
||||
select name, func.toString(), remove_library_prefix(func.getFunction().getLocation())
|
||||
select name, func.toString(), remove_library_prefix(func.getScope().getLocation())
|
||||
|
||||
Reference in New Issue
Block a user