Commit dba7cb9
authored
gh-142418: Remove unnecessary cycle detection from _has_coroutine_mark
Partial and method objects cannot form reference cycles in this context, so
the cycle-detection logic in _has_coroutine_mark introduced unnecessary
overhead. This change removes the visited-set check and keeps the function
as a simple unwrapping loop while still correctly detecting explicitly
marked coroutine wrappers.1 parent 6117107 commit dba7cb9
1 file changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | 309 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 310 | | |
316 | 311 | | |
317 | 312 | | |
| |||
0 commit comments