From 866595f1f6d38299698fcc1f17a502b468265ef6 Mon Sep 17 00:00:00 2001 From: StriverLite Date: Fri, 14 Jul 2023 01:04:28 +0800 Subject: [PATCH] Fixed Build Error on Python3.9 or Higher --- pythonlua/nodevisitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonlua/nodevisitor.py b/pythonlua/nodevisitor.py index edcb6ec..cc11fc2 100644 --- a/pythonlua/nodevisitor.py +++ b/pythonlua/nodevisitor.py @@ -612,7 +612,7 @@ def visit_Str(self, node): def visit_Subscript(self, node): """Visit subscript""" line = "{name}[{index}]" - if not isinstance(node.slice,ast.Slice) and not isinstance(node.slice,ast.ExtSlice) and isinstance(node.slice.value,ast.Tuple): + if not isinstance(node.slice,ast.Slice) and not isinstance(node.slice,ast.ExtSlice): values = { "name": self.visit_all(node.value, inline=True), "index": "tuple {"+self.visit_all(node.slice, inline=True)+"}",