Show More
@@ -62,7 +62,6 b' def _pseudo_sync_runner(coro):' | |||
|
62 | 62 | See discussion in https://github.com/python-trio/trio/issues/608, |
|
63 | 63 | |
|
64 | 64 | Credit to Nathaniel Smith |
|
65 | ||
|
66 | 65 | """ |
|
67 | 66 | try: |
|
68 | 67 | coro.send(None) |
@@ -173,8 +173,8 b' def _ast_asyncify(cell:str, wrapper_name:str) -> ast.Module:' | |||
|
173 | 173 | """ |
|
174 | 174 | Parse a cell with top-level await and modify the AST to be able to run it later. |
|
175 | 175 | |
|
176 | Parameter | |
|
177 | --------- | |
|
176 | Parameters | |
|
177 | ---------- | |
|
178 | 178 | |
|
179 | 179 | cell: str |
|
180 | 180 | The code cell to asyncronify |
@@ -183,9 +183,10 b' def _ast_asyncify(cell:str, wrapper_name:str) -> ast.Module:' | |||
|
183 | 183 | advised to **not** use a python identifier in order to not pollute the |
|
184 | 184 | global namespace in which the function will be ran. |
|
185 | 185 | |
|
186 | Return | |
|
187 | ------ | |
|
186 | Returns | |
|
187 | ------- | |
|
188 | 188 | |
|
189 | ModuleType: | |
|
189 | 190 | A module object AST containing **one** function named `wrapper_name`. |
|
190 | 191 | |
|
191 | 192 | The given code is wrapped in a async-def function, parsed into an AST, and |
|
1 | NO CONTENT: modified file |
General Comments 0
You need to be logged in to leave comments.
Login now