Files
python-uncompyle6/test/simple_source/bug26/06_setif_comprehension.py
2017-12-01 21:36:23 -05:00

10 lines
380 B
Python

# From 2.6.9 abc.py
# For 2.6:
# genexpr_func ::= setup_loop_lf FOR_ITER store comp_iter JUMP_BACK come_from_pop JUMP_BACK POP_BLOCK COME_FROM
# This has been a bug in other Pythons after 2.6 were set comprehension {} is used instead of set().
abstracts = set(name
for name, value in namespace.items()
if getattr(value, "__isabstractmethod__", False))