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

Commit

Permalink
replace union by update
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementPernet committed Feb 7, 2017
1 parent d581d76 commit f152ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/coding/linear_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -4595,7 +4595,7 @@ def _build_lookup_table(self):
# Update decoder types depending on whether we are decoding beyond d/2
if self._code_minimum_distance:
if self._maximum_error_weight == (self._code_minimum_distance-1)//2:
self._decoder_type = self._decoder_type.union({"minimum-distance","always-succeed"})
self._decoder_type.update({"minimum-distance","always-succeed"})
else:
# then t > (d-1)/2
self._decoder_type.add("might-error")
Expand Down

0 comments on commit f152ea8

Please sign in to comment.