From a882c974d30174f308dff325d9f3cec0e303d7c6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 15 Jul 2017 15:31:05 +0200 Subject: [PATCH] mkenums: pass string for re.sub() for real Signed-off-by: Igor Gnatenko --- gobject/glib-mkenums.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in index 04e18af87..99476c0ec 100755 --- a/gobject/glib-mkenums.in +++ b/gobject/glib-mkenums.in @@ -395,7 +395,7 @@ def process_file(curfilename): # canonicalize user defined prefixes enum_prefix = enum_prefix.upper() 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 = [] for e in entries: