@@ -69,8 +69,9 @@ def _insert_punctured_positions(l, punctured_points, value = None):
6969
7070    - ``punctured_points`` -- a set of integers 
7171
72-     - ``value`` -- (default: ``None``) an element to insert in every position given in``punctured_points``. 
73-       If it is let to ``None``, a random value will be chosen for each insertion. 
72+     - ``value`` -- (default: ``None``) an element to insert in every position 
73+       given in``punctured_points``.  If it is let to ``None``, a random value 
74+       will be chosen for each insertion. 
7475
7576    EXAMPLES:: 
7677
@@ -121,13 +122,15 @@ def __init__(self, C, positions):
121122        r""" 
122123        TESTS: 
123124
124-         If one of the positions to puncture is bigger than the length of ``C``, an exception will be raised:: 
125+         If one of the positions to puncture is bigger than the length of ``C``, 
126+         an exception will be raised:: 
125127
126128            sage: C = codes.random_linear_code(GF(7), 11, 5) 
127129            sage: Cp = codes.PuncturedCode(C, {4,8,15}) 
128130            Traceback (most recent call last): 
129131            ... 
130-             ValueError: Positions to puncture must be positive integers smaller than the length of the provided code 
132+             ValueError: Positions to puncture must be positive integers smaller 
133+             than the length of the provided code 
131134        """ 
132135        if  not  isinstance (positions , (Integer , int , set , list )):
133136            raise  TypeError ("positions must be either a Sage Integer, a Python int, a set or a list" )
@@ -439,18 +442,19 @@ class PuncturedCodeOriginalCodeDecoder(Decoder):
439442    - ``strategy`` -- (default: ``None``) the strategy used to decode. 
440443      The available strategies are: 
441444
442-       * ``'error-erasure'`` -- uses an error-erasure decoder over the original code if available,  
443-         fails otherwise. 
445+       * ``'error-erasure'`` -- uses an error-erasure decoder over the original 
446+         code if available,  fails otherwise. 
444447
445448      * ``'random-values'`` -- fills the punctured positions with random elements 
446449        in ``code``'s base field and tries to decode using 
447450        the default decoder of the original code 
448451
449-       * ``'try-all'`` -- fills the punctured positions with every possible combination of 
450-         symbols until decoding succeeds, or until every combination have been tried 
452+       * ``'try-all'`` -- fills the punctured positions with every possible 
453+         combination of symbols until decoding succeeds, or until every 
454+         combination have been tried 
451455
452-       * ``None`` -- uses ``error-erasure`` if an error-erasure decoder is available,  
453-         switch to ``random-values`` behaviour otherwise 
456+       * ``None`` -- uses ``error-erasure`` if an error-erasure decoder is 
457+         available,  switch to ``random-values`` behaviour otherwise 
454458
455459    - ``original_decoder`` -- (default: ``None``) the decoder that will be used over the original code. 
456460      It has to be a decoder object over the original code. 
@@ -468,19 +472,20 @@ class PuncturedCodeOriginalCodeDecoder(Decoder):
468472        Decoder of Puncturing of [15, 7, 9] Reed-Solomon Code over GF(16) on position(s) [3] 
469473         through Error-Erasure decoder for [15, 7, 9] Reed-Solomon Code over GF(16) 
470474
471-     As seen above, if all optional are left blank, and if an error-erasure decoder is 
472-     available, it will be chosen as the original decoder. 
473-     Now, if one forces ``strategy`` to ``'try-all'`` or ``'random-values'``, the 
474-     default decoder of the original code will be chosen, even if an error-erasure is available:: 
475+     As seen above, if all optional are left blank, and if an error-erasure 
476+     decoder is available, it will be chosen as the original decoder.  Now, if 
477+     one forces ``strategy`` to ``'try-all'`` or ``'random-values'``, the default 
478+     decoder of the original code will be chosen, even if an error-erasure is 
479+     available:: 
475480
476481        sage: C = codes.GeneralizedReedSolomonCode(GF(16, 'a').list()[:15], 7) 
477482        sage: Cp = codes.PuncturedCode(C, 3) 
478483        sage: D = codes.decoders.PuncturedCodeOriginalCodeDecoder(Cp, strategy="try-all") 
479484        sage: "error-erasure" in D.decoder_type() 
480485        False 
481486
482-     And if one fills ``original_decoder`` and ``strategy`` fields with contradictory  
483-     elements, the ``original_decoder`` takes precedence:: 
487+     And if one fills ``original_decoder`` and ``strategy`` fields with 
488+     contradictory  elements, the ``original_decoder`` takes precedence:: 
484489
485490        sage: C = codes.GeneralizedReedSolomonCode(GF(16, 'a').list()[:15], 7) 
486491        sage: Cp = codes.PuncturedCode(C, 3) 
0 commit comments