mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Pacify Pylint
Pass Pylint by cleaning up the code where possible and silencing Pylint where I know better. No behavior change.
This commit is contained in:
@ -8,7 +8,6 @@ of that program.
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
OUTPUT_TEMPLATE = '''\
|
||||
/* Automatically generated by generate_psa_constant.py. DO NOT EDIT. */
|
||||
@ -224,12 +223,11 @@ class MacroCollector:
|
||||
return
|
||||
elif (name.startswith('PSA_ERROR_') or name == 'PSA_SUCCESS') \
|
||||
and not parameter:
|
||||
if name in [
|
||||
'PSA_ERROR_UNKNOWN_ERROR',
|
||||
if name in ['PSA_ERROR_UNKNOWN_ERROR',
|
||||
'PSA_ERROR_OCCUPIED_SLOT',
|
||||
'PSA_ERROR_EMPTY_SLOT',
|
||||
'PSA_ERROR_INSUFFICIENT_CAPACITY',
|
||||
]:
|
||||
]:
|
||||
# Ad hoc skipping of deprecated error codes, which share
|
||||
# numerical values with non-deprecated error codes
|
||||
return
|
||||
|
Reference in New Issue
Block a user