mkenums: Do not check for None

The symprefix variable can only be a string.
This commit is contained in:
Emmanuele Bassi 2017-07-16 12:06:34 +01:00
parent af4a6457eb
commit 69389bdc34

View File

@ -447,7 +447,7 @@ def process_file(curfilename):
enumshort = re.sub(r'([A-Z][A-Z])([A-Z][0-9a-z])', r'\1_\2', enumshort)
enumshort = enumshort.upper()
if symprefix is not None:
if symprefix:
enumname_prefix = symprefix.upper()
else:
enumname_prefix = idprefix.upper()