Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b478a51

Browse files
yoffRasmusWL
andauthored
Apply suggestions from code review
Thanks for doing the work for me :-) Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 6cc8e5a commit b478a51

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Provides classes modeling security-relevant aspects of the `Psycopg` PyPI package.
2+
* Provides classes modeling security-relevant aspects of the `psycopg2` PyPI package.
33
* See
44
* - https://www.psycopg.org/docs/
55
* - https://pypi.org/project/psycopg2/
@@ -12,7 +12,7 @@ private import semmle.python.Concepts
1212
private import PEP249
1313

1414
/**
15-
* Provides models for the `Psycopg` PyPI package.
15+
* Provides models for the `psycopg2` PyPI package.
1616
* See
1717
* - https://www.psycopg.org/docs/
1818
* - https://pypi.org/project/psycopg2/
@@ -21,19 +21,19 @@ module Psycopg {
2121
// ---------------------------------------------------------------------------
2222
// Psycopg
2323
// ---------------------------------------------------------------------------
24-
/** Gets a reference to the `Psycopg` module. */
25-
private DataFlow::Node modulePsycopg(DataFlow::TypeTracker t) {
24+
/** Gets a reference to the `psycopg2` module. */
25+
private DataFlow::Node psycopg2(DataFlow::TypeTracker t) {
2626
t.start() and
2727
result = DataFlow::importNode("psycopg2")
2828
or
29-
exists(DataFlow::TypeTracker t2 | result = modulePsycopg(t2).track(t2, t))
29+
exists(DataFlow::TypeTracker t2 | result = psycopg2(t2).track(t2, t))
3030
}
3131

32-
/** Gets a reference to the `Psycopg` module. */
33-
DataFlow::Node modulePsycopg() { result = modulePsycopg(DataFlow::TypeTracker::end()) }
32+
/** Gets a reference to the `psycopg2` module. */
33+
DataFlow::Node psycopg2() { result = psycopg2(DataFlow::TypeTracker::end()) }
3434

35-
/** Psycopg implements PEP 249, providing ways to execute SQL statements against a database. */
35+
/** psycopg2 implements PEP 249, providing ways to execute SQL statements against a database. */
3636
class Psycopg extends PEP249Module {
37-
Psycopg() { this = modulePsycopg() }
37+
Psycopg() { this = psycopg2() }
3838
}
3939
}

0 commit comments

Comments
 (0)