Skip to content

Commit 118275e

Browse files
committed
Python: Use import python consistently in all queries.
1 parent 18e1708 commit 118275e

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

python/ql/src/Filters/NotGenerated.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @kind file-classifier
55
* @id py/not-generated-file-filter
66
*/
7+
import python
78
import external.DefectFilter
89
import semmle.python.filters.GeneratedCode
910

python/ql/src/Filters/NotTest.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @kind file-classifier
55
* @id py/not-test-file-filter
66
*/
7+
import python
78
import external.DefectFilter
89
import semmle.python.filters.Tests
910

python/ql/src/Security/CWE-798/HardcodedCredentials.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* external/cwe/cwe-798
1212
*/
1313

14+
import python
1415
import semmle.python.security.TaintTracking
1516
import semmle.python.filters.Tests
1617

python/ql/src/external/DuplicateBlock.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @precision medium
1515
* @id py/duplicate-block
1616
*/
17+
import python
1718
import CodeDuplication
1819

1920
predicate sorted_by_location(DuplicateBlock x, DuplicateBlock y) {

0 commit comments

Comments
 (0)