Skip to content

Commit 67ca148

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent 14a1aa0 commit 67ca148

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ predicate clearsContent(Node n, Content c) {
19791979
/**
19801980
* Holds if values stored inside attribute `c` are cleared at node `n`.
19811981
*
1982-
* In `obj.foo = x` the any old value stored in `foo` is cleared at the pre-update node
1982+
* In `obj.foo = x` any old value stored in `foo` is cleared at the pre-update node
19831983
* associated with `obj`
19841984
*/
19851985
predicate attributeClearStep(Node n, AttributeContent c) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Argument1RoutingConfig extends DataFlow::Configuration {
4343
* making it seem like we handle all cases even if we only handle the last one.
4444
* We make the test honest by preventing flow into source nodes.
4545
*/
46-
override predicate isBarrierIn(DataFlow::Node node) { isSource(node) }
46+
override predicate isBarrierIn(DataFlow::Node node) { this.isSource(node) }
4747
}
4848

4949
// for argument 2 and up, we use a generic approach. Change `maxNumArgs` below if we

0 commit comments

Comments
 (0)