File tree Expand file tree Collapse file tree
python/ql/src/experimental/semmle/python/frameworks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,29 +35,29 @@ module Connection {
3535 * calls, or a special parameter that will be set when functions are called by external
3636 * libraries.
3737 *
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 `.
3939 *
4040 * Extend this class if the module implementing PEP 249 offers more direct ways to obtain
4141 * a connection than going through `connect`.
4242 */
4343 abstract class InstanceSource extends DataFlow:: Node { }
4444
45- /** A direct instantiation of `db.Conection `. */
45+ /** A direct instantiation of `db.Connection `. */
4646 private class ClassInstantiation extends InstanceSource , DataFlow:: CfgNode {
4747 override CallNode node ;
4848
4949 ClassInstantiation ( ) { node .getFunction ( ) = connect ( ) .asCfgNode ( ) }
5050 }
5151
52- /** Gets a reference to an instance of `db.Conection `. */
52+ /** Gets a reference to an instance of `db.Connection `. */
5353 private DataFlow:: Node instance ( DataFlow:: TypeTracker t ) {
5454 t .start ( ) and
5555 result instanceof InstanceSource
5656 or
5757 exists ( DataFlow:: TypeTracker t2 | result = instance ( t2 ) .track ( t2 , t ) )
5858 }
5959
60- /** Gets a reference to an instance of `db.Conection `. */
60+ /** Gets a reference to an instance of `db.Connection `. */
6161 DataFlow:: Node instance ( ) { result = instance ( DataFlow:: TypeTracker:: end ( ) ) }
6262}
6363
You can’t perform that action at this time.
0 commit comments