From 4a49651860d517e1a491ebf2a140b376364eb08e Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Fri, 8 Jul 2022 19:59:09 +0100 Subject: [PATCH] Fix formatting of generate_ssl_debug_helpers.py Satisfy pylint formatting errors Signed-off-by: Paul Elliott --- scripts/generate_ssl_debug_helpers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/generate_ssl_debug_helpers.py b/scripts/generate_ssl_debug_helpers.py index 4c64fe1e3f..3127afcee3 100755 --- a/scripts/generate_ssl_debug_helpers.py +++ b/scripts/generate_ssl_debug_helpers.py @@ -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 )