Skip to content

Commit 584ccf1

Browse files
committed
Python: clean up Mysql.qll
1 parent 9f2f6ac commit 584ccf1

File tree

1 file changed

+6
-12
lines changed
  • python/ql/lib/semmle/python/frameworks

1 file changed

+6
-12
lines changed

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,11 @@ private import semmle.python.frameworks.PEP249
2121
* - https://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html
2222
*/
2323
private module Mysql {
24-
// ---------------------------------------------------------------------------
25-
// mysql
26-
// ---------------------------------------------------------------------------
27-
/** Provides models for the `mysql` module. */
28-
module MysqlMod {
29-
/**
30-
* The mysql.connector module
31-
* See https://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html
32-
*/
33-
class MysqlConnector extends PEP249::PEP249ModuleApiNode {
34-
MysqlConnector() { this = API::moduleImport("mysql").getMember("connector") }
35-
}
24+
/**
25+
* The mysql.connector module
26+
* See https://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html
27+
*/
28+
class MysqlConnector extends PEP249::PEP249ModuleApiNode {
29+
MysqlConnector() { this = API::moduleImport("mysql").getMember("connector") }
3630
}
3731
}

0 commit comments

Comments
 (0)