diff --git a/numpy_ml/utils/data_structures.py b/numpy_ml/utils/data_structures.py index 585e469..7287c3d 100644 --- a/numpy_ml/utils/data_structures.py +++ b/numpy_ml/utils/data_structures.py @@ -1,6 +1,9 @@ import heapq from copy import copy -from collections import Hashable +try: + from collections.abc import Hashable +except ImportError: + from collections import Hashable import numpy as np