Skip to content

Commit b17e74d

Browse files
tausbnyoff
andcommitted
Python: Simplify binding fix
Co-authored-by: yoff <yoff@github.com>
1 parent cfacd01 commit b17e74d

File tree

1 file changed

+1
-2
lines changed
  • python/ql/lib/semmle/python/essa

1 file changed

+1
-2
lines changed

python/ql/lib/semmle/python/essa/Essa.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,7 @@ class DeletionDefinition extends EssaNodeDefinition {
633633
class ScopeEntryDefinition extends EssaNodeDefinition {
634634
ScopeEntryDefinition() {
635635
this.getDefiningNode() =
636-
pragma[only_bind_into](pragma[only_bind_out](this.getSourceVariable()))
637-
.getScopeEntryDefinition() and
636+
pragma[only_bind_out](this.getSourceVariable()).getScopeEntryDefinition() and
638637
not this instanceof ImplicitSubModuleDefinition
639638
}
640639

0 commit comments

Comments
 (0)