Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 22379 undo one unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Feb 21, 2017
1 parent 1284b26 commit 58890e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/modules/free_module.py
Expand Up @@ -5409,10 +5409,10 @@ def __cmp__(self, other):
return cmp(type(self), type(other))
c = cmp(self.ambient_vector_space(), other.ambient_vector_space())
if c: return c
c = cmp(self.base_ring(), other.base_ring())
if c: return c
c = cmp(self.dimension(), other.dimension())
if c: return c
c = cmp(self.base_ring(), other.base_ring())
if c: return c
# We use self.echelonized_basis_matrix() == other.echelonized_basis_matrix()
# with the matrix to avoid a circular reference.
return cmp(self.echelonized_basis_matrix(), other.echelonized_basis_matrix())
Expand Down

0 comments on commit 58890e5

Please sign in to comment.