Skip to content

Commit 438d612

Browse files
committed
Compatibility fix
1 parent 6ab9d66 commit 438d612

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cyaron/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ def binary_tree(point_count, left=0, right=0, **kwargs):
204204
if left + right > 1:
205205
raise Exception("left plus right must be smaller than 1")
206206

207-
can_left = {1}
208-
can_right = {1}
207+
can_left = set([1])
208+
can_right = set([1])
209209
graph = Graph(point_count, directed)
210210
for i in range(2, point_count + 1):
211211
edge_pos = random.random()

cyaron/tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from sequence_test import TestSequence
1+
from .sequence_test import TestSequence

0 commit comments

Comments
 (0)