Merge pull request #1063 from taus-semmle/python-fix-compilation-warnings

Python: Fix compilation warnings.
This commit is contained in:
Mark Shannon
2019-03-08 13:54:31 +00:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -502,7 +502,7 @@ class Dict extends Dict_ {
result = this.getAValue() or result = this.getAKey()
}
AstNode getAChildNode() {
override AstNode getAChildNode() {
result = this.getAnItem()
}

View File

@@ -1625,7 +1625,7 @@ module PointsTo {
context.isRuntime() and
exists(ControlFlowNode param |
param = def.getDefiningNode() |
varargs_points_to(param, cls) and value = theEmptyTupleObject() and origin = param
varargs_points_to(param, cls) and value = TupleObject::empty() and origin = param
or
varargs_points_to(param, cls) and value = param and origin = param
or

View File

@@ -385,7 +385,7 @@ class ClassObject extends Object {
result.getFunction().refersTo(this)
}
predicate notClass() {
override predicate notClass() {
none()
}

View File

@@ -130,7 +130,7 @@ class Object extends @py_object {
or
this = theFalseObject() and result = false
or
this = theEmptyTupleObject() and result = false
this = TupleObject::empty() and result = false
or
exists(Tuple t | t = this.getOrigin() |
exists(t.getAnElt()) and result = true