Skip to content

Commit 3231ae7

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent 15d483d commit 3231ae7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/ql/src/semmle/python/frameworks/internal/PEP249Impl.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module PEP249 {
4848
* calls, or a special parameter that will be set when functions are called by external
4949
* libraries.
5050
*
51-
* Use the predicate `Connection::instance()` to get references database connections (following PEP 249).
51+
* Use the predicate `Connection::instance()` to get references to database connections (following PEP 249).
5252
*
5353
* Extend this class if the module implementing PEP 249 offers more direct ways to obtain
5454
* a connection than going through `connect`.
@@ -75,7 +75,7 @@ module PEP249 {
7575
/**
7676
* Provides models for database cursors (following PEP 249).
7777
*
78-
* These are are returned by the `cursor` method on a database connection.
78+
* These are returned by the `cursor` method on a database connection.
7979
* See https://www.python.org/dev/peps/pep-0249/#cursor.
8080
*/
8181
module Cursor {
@@ -86,7 +86,7 @@ module PEP249 {
8686
* calls, or a special parameter that will be set when functions are called by external
8787
* libraries.
8888
*
89-
* Use the predicate `Connection::instance()` to get references database cursors (following PEP 249).
89+
* Use the predicate `Cursor::instance()` to get references to database cursors (following PEP 249).
9090
*
9191
* Extend this class if the module implementing PEP 249 offers more direct ways to obtain
9292
* a connection than going through `connect`.

0 commit comments

Comments
 (0)