mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Fix further pylint issues picked up by Travis CI
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
@ -524,7 +524,7 @@ class NameCheck():
|
||||
"""
|
||||
nm_undefined_regex = re.compile(r"^\S+: +U |^$|^\S+:$")
|
||||
nm_valid_regex = re.compile(r"^\S+( [0-9A-Fa-f]+)* . _*(?P<symbol>\w+)")
|
||||
nm_exclusions = ("FStar", "Hacl")
|
||||
exclusions = ("FStar", "Hacl")
|
||||
|
||||
symbols = []
|
||||
|
||||
@ -542,8 +542,7 @@ class NameCheck():
|
||||
for line in nm_output.splitlines():
|
||||
if not nm_undefined_regex.match(line):
|
||||
symbol = nm_valid_regex.match(line)
|
||||
if (symbol and not symbol.group("symbol").startswith(
|
||||
nm_exclusions)):
|
||||
if (symbol and not symbol.group("symbol").startswith(exclusions)):
|
||||
symbols.append(symbol.group("symbol"))
|
||||
else:
|
||||
self.log.error(line)
|
||||
|
Reference in New Issue
Block a user