From 68df5e61c6a34482ec8cb3bd24a289593101d5e0 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 2 Nov 2014 20:24:45 -0500 Subject: [PATCH] Comment/whitespace cleanup. --- mjo/cone/symmetric_psd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mjo/cone/symmetric_psd.py b/mjo/cone/symmetric_psd.py index c6b9f69..c9f2a4d 100644 --- a/mjo/cone/symmetric_psd.py +++ b/mjo/cone/symmetric_psd.py @@ -178,14 +178,15 @@ def factor_psd(A): """ if not A.base_ring().is_exact() and not A.base_ring() is SR: - raise ValueError('The base ring of ``A`` must be either exact or symbolic.') + msg = 'The base ring of ``A`` must be either exact or symbolic.' + raise ValueError(msg) if not A.base_ring().is_field(): raise ValueError('The base ring of ``A`` must be a field.') if not A.base_ring() is SR: # Change the base field of ``A`` so that we are sure we can take - # roots. The symbolic ring has no algebraic closure. + # roots. The symbolic ring has no algebraic_closure method. A = A.change_ring(A.base_ring().algebraic_closure()) -- 2.44.2