Merge pull request #6077 from paul-elliott-arm/fix_generate_debug_helpers_pylint

Fix formatting of generate_ssl_debug_helpers.py
This commit is contained in:
Paul Elliott 2022-07-08 22:28:41 +01:00 committed by GitHub
commit a343d34f0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,10 +276,9 @@ class SignatureAlgorithmDefinition:
translation_table = []
for m in self._definitions:
name = m.groupdict()['name']
return_val = name[len('MBEDTLS_TLS1_3_SIG_'):].lower()
translation_table.append(
' case {}:\n return "{}";'.format(name,
name[len('MBEDTLS_TLS1_3_SIG_'):].lower())
)
' case {}:\n return "{}";'.format(name, return_val))
body = textwrap.dedent('''\
const char *mbedtls_ssl_sig_alg_to_str( uint16_t in )