Skip to content

Commit fbd72d9

Browse files
authored
fix red_black_tree.py
1 parent 19e3f3c commit fbd72d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_structures/binary_tree/red_black_tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
import doctest
3+
44
from collections.abc import Iterator
55
from pprint import pformat
66

@@ -862,7 +862,7 @@ def main() -> None:
862862
"""
863863
>>> pytests()
864864
"""
865-
865+
import doctest
866866
failures, _ = doctest.testmod()
867867
if failures == 0:
868868
print("All doctests passed!")

0 commit comments

Comments
 (0)