You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Fix python 3 set comprehension and ...
Add a few set/list comprehension offsets for Python 3
This commit is contained in:
@@ -20,6 +20,14 @@ def for_range_stmt():
|
||||
for i in range(2):
|
||||
i+1
|
||||
|
||||
# FIXME: add this test
|
||||
def set_comp():
|
||||
{y for y in range(3)}
|
||||
|
||||
# FIXME: add this test
|
||||
def list_comp():
|
||||
[y for y in range(3)]
|
||||
|
||||
def get_parsed_for_fn(fn):
|
||||
code = fn.__code__ if PYTHON3 else fn.func_code
|
||||
return deparse(PYTHON_VERSION, code)
|
||||
|
Reference in New Issue
Block a user