Skip to content

Commit

Permalink
Simplify dependency reset
Browse files Browse the repository at this point in the history
  • Loading branch information
AsynchronousAI authored Dec 16, 2024
1 parent 0dba77b commit e45a217
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def __init__(self, config=None, show_ast=False):
self.show_ast = show_ast

self.output = []

@staticmethod
def reset_dependencies():
DEPEND = lib.DEPENDENCY
DEPEND = ""
def translate(
self,
pycode,
Expand Down Expand Up @@ -102,9 +102,7 @@ def translate(
)
)

if not reqfile:
DEPEND += "\n\n--> code begin\n"
else:
if reqfile:
allDepends = ""
for depend in lib.libs:
allDepends += f'["{depend}"] = {depend},'
Expand Down

0 comments on commit e45a217

Please sign in to comment.