You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Binary file not shown.
@@ -27,3 +27,6 @@ async def awith_as_test():
|
||||
|
||||
async def f(z):
|
||||
await z
|
||||
|
||||
async def g(z):
|
||||
return await z
|
||||
|
@@ -27,8 +27,12 @@ class Python35Parser(Python34Parser):
|
||||
POP_BLOCK else_suite COME_FROM_LOOP
|
||||
|
||||
# Python 3.5+ Await statement
|
||||
expr ::= await_expr
|
||||
await_expr ::= expr GET_AWAITABLE LOAD_CONST YIELD_FROM
|
||||
|
||||
stmt ::= await_stmt
|
||||
await_stmt ::= expr GET_AWAITABLE LOAD_CONST YIELD_FROM POP_TOP
|
||||
await_stmt ::= await_expr POP_TOP
|
||||
|
||||
|
||||
# Python 3.5+ has WITH_CLEANUP_START/FINISH
|
||||
|
||||
|
@@ -335,7 +335,8 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
#######################
|
||||
if version >= 3.5:
|
||||
TABLE_DIRECT.update({
|
||||
'await_stmt': ( '%|await %c', 0),
|
||||
'await_expr': ( 'await %c', 0),
|
||||
'await_stmt': ( '%|%c', 0),
|
||||
'async_for_stmt': (
|
||||
'%|async for %c in %c:\n%+%c%-\n\n', 9, 1, 25 ),
|
||||
'async_forelse_stmt': (
|
||||
|
Reference in New Issue
Block a user