Commit e6ced48
authored
[mypyc] Use PyGen_GetCode in gen_is_coroutine (#17931)
Instead of copying the implementation of `_PyGen_GetCode` every time it
changes in cpython, use the public `PyGen_GetCode` function. The current
implementation would break for Python 3.14 as it has been changed
upstream in python/cpython#120835.1 parent 706680f commit e6ced48
1 file changed
Lines changed: 2 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
| 405 | + | |
429 | 406 | | |
430 | 407 | | |
431 | 408 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | 409 | | |
440 | 410 | | |
441 | 411 | | |
442 | 412 | | |
443 | | - | |
| 413 | + | |
444 | 414 | | |
445 | 415 | | |
446 | 416 | | |
| |||
0 commit comments