mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-11 20:08:08 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
c05cc652a0
commit
b7d8d7f2ce
|
@ -189,7 +189,7 @@ def multibit_set(bint: int, index: int, bit_len: int, value: int) -> int:
|
||||||
if bint < 0 or index < 0 or bit_len < 0 or value < 0:
|
if bint < 0 or index < 0 or bit_len < 0 or value < 0:
|
||||||
raise ValueError("All input values must be positive integers.")
|
raise ValueError("All input values must be positive integers.")
|
||||||
if bit_length(value) > bit_len:
|
if bit_length(value) > bit_len:
|
||||||
msg =
|
msg =
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Bit length of value can not be greater than specified bit length."
|
"Bit length of value can not be greater than specified bit length."
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user