You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
716 B
Python

6 years ago
"""
sparsetools is not a public module in scipy.sparse, but this file is
for backward compatibility if someone happens to use it.
"""
from numpy import deprecate
# This file shouldn't be imported by scipy --- Scipy code should use
# internally scipy.sparse._sparsetools
@deprecate(old_name="scipy.sparse.sparsetools",
message=("scipy.sparse.sparsetools is a private module for scipy.sparse, "
"and should not be used."))
def _deprecated():
pass
del deprecate
try:
_deprecated()
except DeprecationWarning as e:
# don't fail import if DeprecationWarnings raise error -- works around
# the situation with Numpy's test framework
pass
from ._sparsetools import *