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 bug in 3.7 chained comparison semantic action
This commit is contained in:
@@ -276,6 +276,13 @@ def customize_for_version37(self, version):
|
||||
|
||||
self.n_call = n_call
|
||||
|
||||
def n_compare_chained(node):
|
||||
if node[0] == "compare_chained37":
|
||||
self.default(node[0])
|
||||
else:
|
||||
self.default(node)
|
||||
self.n_compare_chained = n_compare_chained
|
||||
|
||||
def n_importlist37(node):
|
||||
if len(node) == 1:
|
||||
self.default(node)
|
||||
|
Reference in New Issue
Block a user