mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
pyupgrade --py37-plus **/*.py (#1654)
* pyupgrade --py37-plus **/*.py * fixup! Format Python code with psf/black push
This commit is contained in:

committed by
John Law

parent
34c808b375
commit
28419cf839
@ -135,16 +135,14 @@ def reverse_bwt(bwt_string: str, idx_original_string: int) -> str:
|
||||
idx_original_string = int(idx_original_string)
|
||||
except ValueError:
|
||||
raise TypeError(
|
||||
(
|
||||
"The parameter idx_original_string type must be int or passive"
|
||||
" of cast to int."
|
||||
)
|
||||
"The parameter idx_original_string type must be int or passive"
|
||||
" of cast to int."
|
||||
)
|
||||
if idx_original_string < 0:
|
||||
raise ValueError("The parameter idx_original_string must not be lower than 0.")
|
||||
if idx_original_string >= len(bwt_string):
|
||||
raise ValueError(
|
||||
("The parameter idx_original_string must be lower than" " len(bwt_string).")
|
||||
"The parameter idx_original_string must be lower than" " len(bwt_string)."
|
||||
)
|
||||
|
||||
ordered_rotations = [""] * len(bwt_string)
|
||||
|
Reference in New Issue
Block a user