Skip to content

Commit 56d86f9

Browse files
committed
Revert "NEVER MERGE: Ensure we don't use site-packages stuff"
This reverts commit 0ed363bd79f9d3f9e9a905c1192adfe88f1faffb.
1 parent 9863309 commit 56d86f9

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

python/ql/lib/semmle/python/ApiGraphs.qll

-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,6 @@ module API {
838838
// Subclassing a node
839839
lbl = Label::subclass() and
840840
exists(PY::ClassExpr clsExpr, DataFlow::Node superclass | pred.flowsTo(superclass) |
841-
exists(clsExpr.getLocation().getFile().getRelativePath()) and
842841
clsExpr.getABase() = superclass.asExpr() and
843842
// Potentially a class decorator could do anything, but we assume they are
844843
// "benign" and let subclasses edges flow through anyway.

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

-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ private import semmle.python.dataflow.new.internal.ImportStar
3636
class LocalSourceNode extends Node {
3737
cached
3838
LocalSourceNode() {
39-
exists(this.getLocation().getFile().getRelativePath()) and (
4039
Stages::DataFlow::ref() and
4140
this instanceof ExprNode and
4241
not simpleLocalFlowStepForTypetracking(_, this)
@@ -73,7 +72,6 @@ class LocalSourceNode extends Node {
7372
// We include all scope entry definitions, as these act as the local source within the scope they
7473
// enter.
7574
this.asCfgNode() = any(ScopeEntryDefinition def).getDefiningNode()
76-
)
7775
}
7876

7977
/** Holds if this `LocalSourceNode` can flow to `nodeTo` in one or more local flow steps. */

0 commit comments

Comments
 (0)