Skip to content

Commit 7f61040

Browse files
committed
Python: move code and harmonize comments
1 parent 69640f3 commit 7f61040

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,10 @@ module API {
746746
lbl = Label::return() and
747747
ref = pred.getACall()
748748
or
749+
// Awaiting a node that is a use of `base`
750+
lbl = Label::await() and
751+
ref = pred.getAnAwaited()
752+
or
749753
// Subclassing a node
750754
lbl = Label::subclass() and
751755
exists(PY::ClassExpr clsExpr, DataFlow::Node superclass | pred.flowsTo(superclass) |
@@ -759,10 +763,6 @@ module API {
759763
ref.(DataFlow::ExprNode).getNode().getNode() = clsExpr.getADecoratorCall()
760764
)
761765
)
762-
or
763-
// awaiting
764-
lbl = Label::await() and
765-
ref = pred.getAnAwaited()
766766
)
767767
or
768768
exists(DataFlow::Node def, PY::CallableExpr fn |

0 commit comments

Comments
 (0)