Show More
@@ -69,14 +69,14 b' def _asyncify(code: str) -> str:' | |||
|
69 | 69 | And setup a bit of context to run it later. |
|
70 | 70 | """ |
|
71 | 71 | res = dedent( |
|
72 | """ | |
|
73 | async def __wrapper__(): | |
|
74 | try: | |
|
75 | {usercode} | |
|
76 | finally: | |
|
77 | locals() | |
|
78 | 72 |
|
|
79 | ).format(usercode=indent(code, " " * 8)[8:]) | |
|
73 | async def __wrapper__(): | |
|
74 | try: | |
|
75 | {usercode} | |
|
76 | finally: | |
|
77 | locals() | |
|
78 | """ | |
|
79 | ).format(usercode=indent(code, " " * 8)) | |
|
80 | 80 | return res |
|
81 | 81 | |
|
82 | 82 |
General Comments 0
You need to be logged in to leave comments.
Login now