Skip to content

Commit 843ed8f

Browse files
erik-kroghyoff
andcommitted
rename pw to aw
Co-authored-by: yoff <lerchedahl@gmail.com>
1 parent 5e23da8 commit 843ed8f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,9 @@ module API {
520520
rhs(base, def) and pred = trackDefNode(def)
521521
|
522522
// from `x` to a definition of `x.prop`
523-
exists(DataFlow::AttrWrite pw | pw = pred.getAnAttributeWrite() |
524-
lbl = Label::memberFromRef(pw) and
525-
rhs = pw.getValue()
523+
exists(DataFlow::AttrWrite aw | aw = pred.getAnAttributeWrite() |
524+
lbl = Label::memberFromRef(aw) and
525+
rhs = aw.getValue()
526526
)
527527
or
528528
// TODO: I had expected `DataFlow::AttrWrite` to contain the attribute writes from a dict, that's how JS works.
@@ -545,10 +545,10 @@ module API {
545545
or
546546
argumentPassing(base, lbl, rhs)
547547
or
548-
exists(DataFlow::LocalSourceNode src, DataFlow::AttrWrite pw |
549-
use(base, src) and pw = trackUseNode(src).getAnAttributeWrite() and rhs = pw.getValue()
548+
exists(DataFlow::LocalSourceNode src, DataFlow::AttrWrite aw |
549+
use(base, src) and aw = trackUseNode(src).getAnAttributeWrite() and rhs = aw.getValue()
550550
|
551-
lbl = Label::memberFromRef(pw)
551+
lbl = Label::memberFromRef(aw)
552552
)
553553
}
554554

0 commit comments

Comments
 (0)