Skip to content

Commit 084c8eb

Browse files
committed
Python: Don't re-export python under DataFlow::
1 parent 5dbbd17 commit 084c8eb

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplSpecific.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
/**
22
* Provides Python-specific definitions for use in the data flow library.
33
*/
4+
5+
// we need to export `Unit` for the DataFlowImpl* files
6+
private import python as Python
7+
48
module Private {
59
import DataFlowPrivate
10+
611
// import DataFlowDispatch
12+
class Unit = Python::Unit;
713
}
814

915
module Public {

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowUtil.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Contains utility functions for writing data flow queries
33
*/
44

5+
private import python
56
private import DataFlowPrivate
67
import DataFlowPublic
78

python/ql/lib/semmle/python/dataflow/new/internal/LocalSources.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* local tracking within a function.
77
*/
88

9-
import python
9+
private import python
1010
import DataFlowPublic
1111
private import DataFlowPrivate
1212
private import semmle.python.internal.CachedStages
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| Add |
1+
ERROR: Could not resolve type DataFlow::Add (Test.ql:7,6-19)

0 commit comments

Comments
 (0)