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

Commit f3a7f07

Browse files
author
David Lucas
committed
Integrated reviewer's comment
1 parent d64c360 commit f3a7f07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sage/coding/linear_code.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1682,10 +1682,12 @@ def __eq__(self, right):
16821682
and self.dimension() == right.dimension()\
16831683
and self.base_ring() == right.base_ring()):
16841684
return False
1685-
Ks, rbas = self.parity_check_matrix().right_kernel(), right.gens()
1685+
Ks = self.parity_check_matrix().right_kernel()
1686+
rbas = right.gens()
16861687
if not all(c in Ks for c in rbas):
16871688
return False
1688-
Kr, sbas = self.parity_check_matrix().right_kernel(), right.gens()
1689+
Kr = right.parity_check_matrix().right_kernel()
1690+
sbas = self.gens()
16891691
if not all(c in Kr for c in sbas):
16901692
return False
16911693
return True

0 commit comments

Comments
 (0)