Skip to content

Commit a1add9c

Browse files
committed
fix pycodestyle E502 in coding and crypto folders
1 parent 27b077e commit a1add9c

File tree

4 files changed

+236
-236
lines changed

4 files changed

+236
-236
lines changed

src/sage/coding/abstract_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _explain_constructor(cl):
127127
var = "It accepts unspecified arguments as well.\n"
128128
else:
129129
var = ""
130-
return("{}\n{}\n{}See the documentation of {}.{} for more details."\
130+
return("{}\n{}\n{}See the documentation of {}.{} for more details."
131131
.format(reqs, opts, var, cl.__module__, cl.__name__))
132132

133133

src/sage/coding/information_set_decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def time_search_loop(p):
583583
def compute_estimate(p):
584584
iters = 1.* binomial(n, k)/ \
585585
sum( binomial(n-tau, k-i)*binomial(tau,i) for i in range(p+1) )
586-
estimate = iters*(T + \
586+
estimate = iters*(T +
587587
sum(P[pi] * (q-1)**pi * binomial(k, pi) for pi in range(p+1) ))
588588
return estimate
589589

@@ -846,7 +846,7 @@ def __init__(self, code, number_errors, algorithm=None, **kwargs):
846846
self._algorithm = algorithm_names[algorithm](code, number_errors, **kwargs)
847847
else:
848848
raise ValueError("Unknown ISD algorithm '{}'."
849-
" The known algorithms are {}."\
849+
" The known algorithms are {}."
850850
.format(algorithm, sorted(algorithm_names)))
851851

852852
_known_algorithms = {

0 commit comments

Comments
 (0)