Ticket #4492: 4492_typo.patch

File 4492_typo.patch, 1.3 KB (added by wjp, 11 years ago)
  • sage/matrix/constructor.py

    # HG changeset patch
    # User Willem Jan Palenstijn <wjp@usecode.org>
    # Date 1294944881 -3600
    # Node ID aa280a304e44caecf86c4de28d26eecfe51a2f4b
    # Parent  6eb438cb4bf77c948948f40f03ade637af101aa4
    #4492: Fix minor typos
    
    diff -r 6eb438cb4bf7 -r aa280a304e44 sage/matrix/constructor.py
    a b  
    14491449                        changing = True
    14501450                        row_heights[i] = sub_height
    14511451                    elif row_heights[i] != sub_height:
    1452                         raise ValueError("ncompatible submatrix heights")
     1452                        raise ValueError("incompatible submatrix heights")
    14531453   
    14541454    if None in row_heights or None in col_widths:
    14551455        if None in row_heights or None in col_widths:
     
    15761576                if remaining_width > 0 and zero_state == 3:
    15771577                    raise ValueError("insufficient information to determine submatrix widths")
    15781578                if remaining_width > 0 and zero_state == 0:
    1579                     raise ValueError("ncompatible submatrix widths")
     1579                    raise ValueError("incompatible submatrix widths")
    15801580                # otherwise, things fit
    15811581                row_heights[i] = height
    15821582                zero_widths[i] = remaining_width