Skip to content

Commit 3ddac6d

Browse files
committed
numpy matrix is deprecated so remove it
Don't try "support" numpy.matrix since this is deprecated If it ever becomes an issue we can put it back and silence the deprecation warning.
1 parent 96ca884 commit 3ddac6d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mathics/builtin/pympler/asizeof.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,8 +1502,7 @@ def _numpy_kwds(obj):
15021502
_all_lens += (_len_numpy,)
15031503

15041504
_numpy_types = ()
1505-
for d in (numpy.array(range(0)), numpy.arange(0),
1506-
numpy.matrix(range(0)), numpy.ma.masked_array([])):
1505+
for d in (numpy.array(range(0)), numpy.arange(0)):
15071506
t = type(d)
15081507
if t not in _numpy_types:
15091508
_numpy_types += (t,)

0 commit comments

Comments
 (0)