diff --git a/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll b/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll index 16cb48466ed..52fe174cb1f 100644 --- a/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll +++ b/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll @@ -422,6 +422,8 @@ module VariableCapture { Function f; CapturedVariable() { + // note: captured variables originating on module scope is currently + // covered by global variable handling. this.getScope() = f and this.getAnAccess().getScope() != f }