Fixed database typo and removed unnecessary class identifier.
This commit is contained in:
parent
00ad49a143
commit
45fb349a7d
5098 changed files with 952558 additions and 85 deletions
27
venv/Lib/site-packages/scipy/sparse/sparsetools.py
Normal file
27
venv/Lib/site-packages/scipy/sparse/sparsetools.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
"""
|
||||
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:
|
||||
# don't fail import if DeprecationWarnings raise error -- works around
|
||||
# the situation with NumPy's test framework
|
||||
pass
|
||||
|
||||
from ._sparsetools import *
|
Loading…
Add table
Add a link
Reference in a new issue