Ticket #9854: convert.py.diff

File convert.py.diff, 626 bytes (added by maldun, 11 years ago)

changes

  • convert.py

    old new  
    154154    # numpy matrix or ndarray
    155155    try:
    156156        import numpy
    157         if isinstance(thing,numpy.core.defmatrix.matrix) or \
     157        #numpy.core.defmatrix changed to numpy.matrixlib.defmatrix
     158        #in the versions 1.3.x to 1.4.x
     159        if isinstance(thing,numpy.matrixlib.defmatrix.matrix) or \
    158160               isinstance(thing,numpy.ndarray):
    159161            try:
    160162                return from_numpy_matrix(thing,create_using=create_using)