File tree 2 files changed +0
-3
lines changed
python/ql/lib/semmle/python
2 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -838,7 +838,6 @@ module API {
838
838
// Subclassing a node
839
839
lbl = Label:: subclass ( ) and
840
840
exists ( PY:: ClassExpr clsExpr , DataFlow:: Node superclass | pred .flowsTo ( superclass ) |
841
- exists ( clsExpr .getLocation ( ) .getFile ( ) .getRelativePath ( ) ) and
842
841
clsExpr .getABase ( ) = superclass .asExpr ( ) and
843
842
// Potentially a class decorator could do anything, but we assume they are
844
843
// "benign" and let subclasses edges flow through anyway.
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ private import semmle.python.dataflow.new.internal.ImportStar
36
36
class LocalSourceNode extends Node {
37
37
cached
38
38
LocalSourceNode ( ) {
39
- exists ( this .getLocation ( ) .getFile ( ) .getRelativePath ( ) ) and (
40
39
Stages:: DataFlow:: ref ( ) and
41
40
this instanceof ExprNode and
42
41
not simpleLocalFlowStepForTypetracking ( _, this )
@@ -73,7 +72,6 @@ class LocalSourceNode extends Node {
73
72
// We include all scope entry definitions, as these act as the local source within the scope they
74
73
// enter.
75
74
this .asCfgNode ( ) = any ( ScopeEntryDefinition def ) .getDefiningNode ( )
76
- )
77
75
}
78
76
79
77
/** Holds if this `LocalSourceNode` can flow to `nodeTo` in one or more local flow steps. */
You can’t perform that action at this time.
0 commit comments