Skip to content

Commit b16b459

Browse files
Improvements for playground
1 parent 46d88f8 commit b16b459

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/nodevisitor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class NodeVisitor(ast.NodeVisitor):
2727
"""Node visitor"""
2828

2929
def __init__(self, context=None, config=None, variables=None, functions=None, currentFunction=None, generators=None):
30+
dependencies = []
31+
exports = []
32+
3033
self.context = context if context is not None else Context()
3134
self.config = config
3235
self.last_end_mode = TokenEndMode.LINE_FEED

src/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def translate(
122122

123123
for i in lib.libs:
124124
if i in CODE:
125-
DEPEND += f"{i} = py.{i}\n"
125+
DEPEND += f"\n{i} = py.{i}"
126126

127127
DEPEND += "\n\n--> code start\n"
128128

0 commit comments

Comments
 (0)