Skip to content

Commit

Permalink
Change old into new style raise statement
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-king-jena committed Sep 19, 2015
1 parent 32b2cb1 commit 1e47929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/matrix/matrix_gf2e_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ cdef class Matrix_gf2e_dense(matrix_dense.Matrix_dense):
cdef Matrix_gf2e_dense A

if self._nrows != right._nrows:
raise TypeError, "Both numbers of rows must match."
raise TypeError("Both numbers of rows must match.")

if self._ncols == 0:
return right.__copy__()
Expand Down Expand Up @@ -1272,7 +1272,7 @@ cdef class Matrix_gf2e_dense(matrix_dense.Matrix_dense):
[]
"""
if self._ncols != other._ncols:
raise TypeError, "Both numbers of columns must match."
raise TypeError("Both numbers of columns must match.")

if self._nrows == 0:
return other.__copy__()
Expand Down

0 comments on commit 1e47929

Please sign in to comment.