We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ae0fb commit d535246Copy full SHA for d535246
python/ql/src/Exceptions/UnguardedNextInGenerator.ql
@@ -12,12 +12,12 @@
12
13
import python
14
15
-FunctionObject iter() {
16
- result = Object::builtin("iter")
+FunctionValue iter() {
+ result = Value::named("iter")
17
}
18
19
-BuiltinFunctionObject next() {
20
- result = Object::builtin("next")
+BuiltinFunctionValue next() {
+ result = Value::named("next")
21
22
23
predicate call_to_iter(CallNode call, EssaVariable sequence) {
@@ -43,7 +43,7 @@ predicate iter_not_exhausted(EssaVariable iterator) {
43
predicate stop_iteration_handled(CallNode call) {
44
exists(Try t |
45
t.containsInScope(call.getNode()) and
46
- t.getAHandler().getType().refersTo(theStopIterationType())
+ t.getAHandler().getType().pointsTo(ClassValue::stopIteration())
47
)
48
49
0 commit comments