Skip to content

Commit 1206ff5

Browse files
authored
Merge pull request #4150 from RasmusWL/python-dataflow-private-import
Python: Make import of python private in shared dataflow
2 parents 36ac111 + 9da6da6 commit 1206ff5

File tree

12 files changed

+12
-4
lines changed

12 files changed

+12
-4
lines changed

python/ql/src/experimental/dataflow/DataFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* `DataFlow::localFlowStep` with arguments of type `DataFlow::Node`.
1616
*/
1717

18-
import python
18+
private import python
1919

2020
/**
2121
* Provides classes for performing local (intra-procedural) and

python/ql/src/experimental/dataflow/DataFlow2.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* `DataFlow::localFlowStep` with arguments of type `DataFlow::Node`.
1616
*/
1717

18-
import python
18+
private import python
1919

2020
/**
2121
* Provides classes for performing local (intra-procedural) and

python/ql/src/experimental/dataflow/TaintTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* `TaintTracking::localTaintStep` with arguments of type `DataFlow::Node`.
99
*/
1010

11-
import python
11+
private import python
1212

1313
/**
1414
* Provides classes for performing local (intra-procedural) and

python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Provides Python-specific definitions for use in the data flow library.
33
*/
44

5-
import python
5+
private import python
66
private import DataFlowPrivate
77

88
/**

python/ql/test/experimental/dataflow/callGraphConfig.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
private import python
12
import experimental.dataflow.DataFlow
23

34
/**

python/ql/test/experimental/dataflow/coverage/argumentRouting1.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import python
12
import experimental.dataflow.DataFlow
23

34
/**

python/ql/test/experimental/dataflow/coverage/argumentRouting2.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import python
12
import experimental.dataflow.DataFlow
23

34
/**

python/ql/test/experimental/dataflow/coverage/argumentRouting3.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import python
12
import experimental.dataflow.DataFlow
23

34
/**

python/ql/test/experimental/dataflow/coverage/argumentRouting4.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import python
12
import experimental.dataflow.DataFlow
23

34
/**

python/ql/test/experimental/dataflow/coverage/dataflow.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @kind path-problem
33
*/
44

5+
import python
56
import experimental.dataflow.testConfig
67
import DataFlow::PathGraph
78

0 commit comments

Comments
 (0)