Python: remove spurious dataflow step

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-10-27 15:33:27 +02:00
parent cca675a161
commit 56dab252c9

View File

@@ -171,6 +171,7 @@ module EssaFlow {
// see `with_flow` in `python/ql/src/semmle/python/dataflow/Implementation.qll`
with.getContextExpr() = contextManager.getNode() and
with.getOptionalVars() = var.getNode() and
not with.isAsync() and
contextManager.strictlyDominates(var)
)
or