Skip to content

Commit afb5021

Browse files
committed
Python: update version check
doc said 3.5 experience says 3.7
1 parent a8a042d commit afb5021

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/ql/src/Exceptions/UnguardedNextInGenerator.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ where
6969
not stop_iteration_handled(call) and
7070
// PEP 479 removes this concern from 3.5 onwards
7171
// see: https://peps.python.org/pep-0479/
72+
//
73+
// However, testing it out, the problem is not removed until 3.7.
7274
(
7375
major_version() = 2
7476
or
75-
major_version() = 3 and minor_version() < 5
77+
major_version() = 3 and minor_version() < 7
7678
)
7779
select call, "Call to next() in a generator"

0 commit comments

Comments
 (0)