Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11)

Unified Diff: Lib/asyncio/tasks.py

Issue 24867: Asyncio Task.get_stack fails with native coroutines
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/asyncio/tasks.py Fri Aug 14 02:07:41 2015 -0700
+++ b/Lib/asyncio/tasks.py Fri Aug 14 16:14:59 2015 +0100
@@ -128,7 +128,8 @@
returned for a suspended coroutine.
"""
frames = []
- f = self._coro.gi_frame
+ f = (self._coro.gi_frame if hasattr(self._coro, 'gi_frame')
+ else self._coro.cr_frame)
if f is not None:
while f is not None:
if limit is not None:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+