You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Typo
This commit is contained in:
@@ -677,7 +677,7 @@ def make_function3(self, node, is_lambda, nested=1, code_node=None):
|
|||||||
# add in "yield" just so that the compiler will mark
|
# add in "yield" just so that the compiler will mark
|
||||||
# the GENERATOR bit of the function. See for example
|
# the GENERATOR bit of the function. See for example
|
||||||
# Python 3.x's test_generator.py test program.
|
# Python 3.x's test_generator.py test program.
|
||||||
if not is_lambda code.co_flags & CO_GENERATOR:
|
if not is_lambda and code.co_flags & CO_GENERATOR:
|
||||||
need_bogus_yield = True
|
need_bogus_yield = True
|
||||||
for token in scanner_code._tokens:
|
for token in scanner_code._tokens:
|
||||||
if token in ("YIELD_VALUE", "YIELD_FROM"):
|
if token in ("YIELD_VALUE", "YIELD_FROM"):
|
||||||
|
Reference in New Issue
Block a user