File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/ql/src/experimental/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,29 +35,29 @@ module Connection {
35
35
* calls, or a special parameter that will be set when functions are called by external
36
36
* libraries.
37
37
*
38
- * Use `Conection ::instance()` predicate to get references to instances of `db.Conection `.
38
+ * Use `Connection ::instance()` predicate to get references to instances of `db.Connection `.
39
39
*
40
40
* Extend this class if the module implementing PEP 249 offers more direct ways to obtain
41
41
* a connection than going through `connect`.
42
42
*/
43
43
abstract class InstanceSource extends DataFlow:: Node { }
44
44
45
- /** A direct instantiation of `db.Conection `. */
45
+ /** A direct instantiation of `db.Connection `. */
46
46
private class ClassInstantiation extends InstanceSource , DataFlow:: CfgNode {
47
47
override CallNode node ;
48
48
49
49
ClassInstantiation ( ) { node .getFunction ( ) = connect ( ) .asCfgNode ( ) }
50
50
}
51
51
52
- /** Gets a reference to an instance of `db.Conection `. */
52
+ /** Gets a reference to an instance of `db.Connection `. */
53
53
private DataFlow:: Node instance ( DataFlow:: TypeTracker t ) {
54
54
t .start ( ) and
55
55
result instanceof InstanceSource
56
56
or
57
57
exists ( DataFlow:: TypeTracker t2 | result = instance ( t2 ) .track ( t2 , t ) )
58
58
}
59
59
60
- /** Gets a reference to an instance of `db.Conection `. */
60
+ /** Gets a reference to an instance of `db.Connection `. */
61
61
DataFlow:: Node instance ( ) { result = instance ( DataFlow:: TypeTracker:: end ( ) ) }
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments