You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
2.4 tolerance
This commit is contained in:
17
test/simple_source/bug14/lambda.py
Normal file
17
test/simple_source/bug14/lambda.py
Normal file
@@ -0,0 +1,17 @@
|
||||
palette = map(lambda a:(a,
|
||||
a,
|
||||
a)
|
||||
, range(256))
|
||||
palette = map(lambda (r, g, b,):((chr(r) + chr(g)) + chr(b))
|
||||
, palette)
|
||||
palette = map(lambda r:r
|
||||
, palette)
|
||||
palette = lambda (r, g, b,):r
|
||||
|
||||
palette = lambda (r):r
|
||||
|
||||
palette = lambda r:r
|
||||
|
||||
palette = (lambda (r):r
|
||||
,
|
||||
palette)
|
@@ -13,9 +13,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
def joined_str_ok(
|
||||
self, lhs: str, n: int, rule, tree, tokens: list, first: int, last: int
|
||||
) -> bool:
|
||||
def joined_str_ok(self, lhs, n, rule, tree, tokens, first, last):
|
||||
# In Python 3.8, there is a new "=" specifier.
|
||||
# See https://docs.python.org/3/whatsnew/3.8.html#f-strings-support-for-self-documenting-expressions-and-debugging
|
||||
# We detect this here inside joined_str by looking for an
|
||||
|
Reference in New Issue
Block a user