Commit e863f5c9 authored by Olivier Aubert's avatar Olivier Aubert

python-ctypes: capitalize enum names only if they do not already start with an uppercase letter

parent b715274e
......@@ -206,7 +206,7 @@ def convert_enum_names(enums):
pyname=re.findall('(libvlc|mediacontrol)_(.+?)(_t)?$', name)[0][1]
if '_' in pyname:
pyname=pyname.title().replace('_', '')
else:
elif not pyname[0].isupper():
pyname=pyname.capitalize()
res[name]=pyname
return res
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment