mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-10 15:50:47 -04:00
Pacify pylint
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
92c5d31b44
commit
83763ab6b1
@ -55,7 +55,6 @@ of BaseTarget in test_data_generation.py.
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import typing
|
|
||||||
|
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta, abstractmethod
|
||||||
from typing import Iterator, List, Tuple, TypeVar
|
from typing import Iterator, List, Tuple, TypeVar
|
||||||
@ -71,7 +70,7 @@ def hex_to_int(val: str) -> int:
|
|||||||
|
|
||||||
This is a superset of what is accepted by mbedtls_test_read_mpi_core().
|
This is a superset of what is accepted by mbedtls_test_read_mpi_core().
|
||||||
"""
|
"""
|
||||||
if val == '' or val == '-':
|
if val in ['', '-']:
|
||||||
return 0
|
return 0
|
||||||
return int(val, 16)
|
return int(val, 16)
|
||||||
|
|
||||||
@ -121,6 +120,7 @@ class BignumOperation(BignumTarget, metaclass=ABCMeta):
|
|||||||
return [quote_str(self.arg_a), quote_str(self.arg_b), self.result()]
|
return [quote_str(self.arg_a), quote_str(self.arg_b), self.result()]
|
||||||
|
|
||||||
def description_suffix(self) -> str:
|
def description_suffix(self) -> str:
|
||||||
|
#pylint: disable=no-self-use # derived classes need self
|
||||||
"""Text to add at the end of the test case description."""
|
"""Text to add at the end of the test case description."""
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user