Python: Modernizes query

This commit is contained in:
Rebecca Valentine
2020-03-04 17:22:21 -08:00
parent 02ae0fbda6
commit 646bc29e76

View File

@@ -12,7 +12,7 @@
import python
from Raise r, AstNode origin
where r.getException().refersTo(_, theTupleType(), origin) and
where r.getException().pointsTo(_, ClassValue::tuple(), origin) and
major_version() = 2 /* Raising a tuple is a type error in Python 3, so is handled by the IllegalRaise query. */
select r, "Raising $@ will result in the first element (recursively) being raised and all other elements being discarded.", origin, "a tuple"