Skip to content

Commit d8982d0

Browse files
committed
Fix EoL in Python
1 parent 5f44d11 commit d8982d0

File tree

9 files changed

+11
-13
lines changed

9 files changed

+11
-13
lines changed

python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""
22
python version of nucleoid
3-
"""
3+
"""

python/lang/handlers/assignment_handler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ def assignment_handler(node):
1919
variable_state[var_name] = var_value
2020
# Add the variable as a node in the graph
2121
maingraph.add_node(var_name)
22-

python/lang/handlers/expression_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ast
1+
import ast
22
from ...nucleoid.state import variable_state
33

44
def expression_handler(node):
@@ -56,4 +56,4 @@ def expression_handler(node):
5656
else:
5757
raise NotImplementedError(f"Comparison operator {node.ops[0]} not supported")
5858
else:
59-
raise NotImplementedError(f"Node type {type(node)} not supported")
59+
raise NotImplementedError(f"Node type {type(node)} not supported")

python/nucleoid/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import networkx as nx
22

3-
maingraph = nx.MultiDiGraph()
3+
maingraph = nx.MultiDiGraph()

python/nucleoid/nucleoid.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class Nucleoid:
55
def __init__(self):
66
print("Nucleoid object created")
7-
7+
88
#clear all the graph and state etc(for later)
99

1010

@@ -14,5 +14,3 @@ def run(self, statement):
1414
parsed_tree = parse(statement)
1515
out = process(parsed_tree)
1616
return out
17-
18-

python/nucleoid/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
def parse(statement):
44
print("Parsing statement: ", statement)
55
tree = ast.parse(statement)
6-
return tree
6+
return tree

python/nucleoid/process.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ast
1+
import ast
22
from ..lang.handlers.assignment_handler import assignment_handler
33
from ..lang.handlers.expression_handler import expression_handler
44

@@ -10,6 +10,6 @@ def process(parsed_tree):
1010
if isinstance(parsed_tree.body[0], ast.Expr):
1111
return expression_handler(parsed_tree.body[0].value)
1212

13-
13+
1414
if isinstance(parsed_tree.body[0], ast.Assign):
15-
assignment_handler(parsed_tree.body[0])
15+
assignment_handler(parsed_tree.body[0])

python/nucleoid/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
variable_state = {}
1+
variable_state = {}

src/lang/$nuc/$INSTANCE.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function build(cls, object, name, args = []) {
1212
statement.obj = object;
1313
statement.nme = name;
1414
statement.args = args;
15+
1516
return statement;
1617
}
1718

0 commit comments

Comments
 (0)