Skip to content

Commit ec0633e

Browse files
author
hartsantler
committed
fixed glsl webclgl backend, subscript a[n] no space is allowed inside the brackets.
1 parent 67c786d commit ec0633e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonjs/python_to_pythonjs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ def visit_Subscript(self, node):
14591459
return '%s[...]' %name
14601460

14611461
elif self._with_ll or self._with_glsl:
1462-
return '%s[ %s ]' %(name, self.visit(node.slice))
1462+
return '%s[%s]' %(name, self.visit(node.slice))
14631463

14641464
elif self._with_js or self._with_dart:
14651465
if isinstance(node.slice, ast.Slice): ## allow slice on Array

0 commit comments

Comments
 (0)