Skip to content

Commit

Permalink
removed _trees import error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishan-Ved committed May 7, 2024
1 parent 47071ec commit 3334684
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static PyTypeObject BinarySearchTreeType = {
0, /* tp_dictoffset */
0, /* tp_init */
0, /* tp_alloc */
BinarySearchTree_new, /* tp_new */
BinarySearchTree___new__, /* tp_new */
};

// Module definition for the binarysearchtree module
Expand Down
2 changes: 1 addition & 1 deletion pydatastructs/trees/_backend/cpp/trees/trees.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
static struct PyModuleDef trees_struct = {
PyModuleDef_HEAD_INIT,
"_trees",
NULL,
0,
-1,
NULL
};
Expand Down
2 changes: 1 addition & 1 deletion pydatastructs/trees/binary_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from pydatastructs.miscellaneous_data_structures import Stack
from pydatastructs.linear_data_structures import OneDimensionalArray
from pydatastructs.linear_data_structures.arrays import ArrayForTrees
from pydatastructs.trees._backend.cpp import _trees
from pydatastructs.utils.misc_util import (
Backend, raise_if_backend_is_not_python)
from pydatastructs.trees._backend.cpp import _trees

__all__ = [
'AVLTree',
Expand Down

0 comments on commit 3334684

Please sign in to comment.