From 58890e5ae2dd40e696403d333690b56bf46a7e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Tue, 21 Feb 2017 13:18:16 +0100 Subject: [PATCH] trac 22379 undo one unnecessary change --- src/sage/modules/free_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/modules/free_module.py b/src/sage/modules/free_module.py index dc3b100acdd..a7a75a1485b 100644 --- a/src/sage/modules/free_module.py +++ b/src/sage/modules/free_module.py @@ -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())