mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
mkenums: Do not check for None
The symprefix variable can only be a string.
This commit is contained in:
parent
af4a6457eb
commit
69389bdc34
@ -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 = re.sub(r'([A-Z][A-Z])([A-Z][0-9a-z])', r'\1_\2', enumshort)
|
||||||
enumshort = enumshort.upper()
|
enumshort = enumshort.upper()
|
||||||
|
|
||||||
if symprefix is not None:
|
if symprefix:
|
||||||
enumname_prefix = symprefix.upper()
|
enumname_prefix = symprefix.upper()
|
||||||
else:
|
else:
|
||||||
enumname_prefix = idprefix.upper()
|
enumname_prefix = idprefix.upper()
|
||||||
|
Loading…
Reference in New Issue
Block a user