Skip to content

Commit e2a2a42

Browse files
committed
Python: Fix api references
1 parent d23a920 commit e2a2a42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/ql/lib/semmle/python/frameworks/Aiomysql.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private module Aiomysql {
1616

1717
/**
1818
* A `ConectionPool` is created when the result of `aiomysql.create_pool()` is awaited.
19-
* See https://aiomysql.readthedocs.io/en/stable/core.html#pool
19+
* See https://aiomysql.readthedocs.io/en/stable/pool.html
2020
*/
2121
API::Node connectionPool() {
2222
result = API::moduleImport("aiomysql").getMember("create_pool").getReturn().getAwaited()
@@ -26,7 +26,7 @@ private module Aiomysql {
2626
* A `Connection` is created when
2727
* - the result of `aiomysql.connect()` is awaited.
2828
* - the result of calling `aquire` on a `ConnectionPool` is awaited.
29-
* See https://aiomysql.readthedocs.io/en/stable/core.html#connection
29+
* See https://aiomysql.readthedocs.io/en/stable/connection.html#connection
3030
*/
3131
API::Node connection() {
3232
result = API::moduleImport("aiomysql").getMember("connect").getReturn().getAwaited()
@@ -38,7 +38,7 @@ private module Aiomysql {
3838
* A `Cursor` is created when
3939
* - the result of calling `cursor` on a `ConnectionPool` is awaited.
4040
* - the result of calling `cursor` on a `Connection` is awaited.
41-
* See https://aiomysql.readthedocs.io/en/stable/core.html#cursor
41+
* See https://aiomysql.readthedocs.io/en/stable/cursors.html
4242
*/
4343
API::Node cursor() {
4444
result = connectionPool().getMember("cursor").getReturn().getAwaited()
@@ -48,7 +48,7 @@ private module Aiomysql {
4848

4949
/**
5050
* Calling `execute` on a `Cursor` constructs a query.
51-
* See https://aiomysql.readthedocs.io/en/stable/core.html#aiomysql.Cursor.execute
51+
* See https://aiomysql.readthedocs.io/en/stable/cursors.html#Cursor.execute
5252
*/
5353
class CursorExecuteCall extends SqlConstruction::Range, DataFlow::CallCfgNode {
5454
CursorExecuteCall() { this = cursor().getMember("execute").getACall() }
@@ -74,7 +74,7 @@ private module Aiomysql {
7474

7575
/**
7676
* Awaiting the result of calling `execute` executes the query.
77-
* See https://aiomysql.readthedocs.io/en/stable/core.html#aiomysql.Cursor.execute
77+
* See https://aiomysql.readthedocs.io/en/stable/cursors.html#Cursor.execute
7878
*/
7979
class AwaitedCursorExecuteCall extends SqlExecution::Range {
8080
DataFlow::Node sql;

0 commit comments

Comments
 (0)