mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
mkenums: pass string for re.sub() for real
Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
This commit is contained in:
parent
1a182df5d1
commit
a882c974d3
@ -395,7 +395,7 @@ def process_file(curfilename):
|
|||||||
# canonicalize user defined prefixes
|
# canonicalize user defined prefixes
|
||||||
enum_prefix = enum_prefix.upper()
|
enum_prefix = enum_prefix.upper()
|
||||||
enum_prefix = enum_prefix.replace('-', '_')
|
enum_prefix = enum_prefix.replace('-', '_')
|
||||||
enum_prefix = re.sub(r'(.*)([^_])$', r'\1\2_')
|
enum_prefix = re.sub(r'(.*)([^_])$', r'\1\2_', enum_prefix)
|
||||||
|
|
||||||
fixed_entries = []
|
fixed_entries = []
|
||||||
for e in entries:
|
for e in entries:
|
||||||
|
Loading…
Reference in New Issue
Block a user