[vlc-commits] commit: python: handle anonymous enums (Olivier Aubert )
git at videolan.org
git at videolan.org
Tue Apr 20 17:33:01 CEST 2010
vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Tue Apr 20 16:15:12 2010 +0200| [53c1eb51e496789566489f5932a3590d3cd62c25] | committer: Olivier Aubert
python: handle anonymous enums
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=53c1eb51e496789566489f5932a3590d3cd62c25
---
generate.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/generate.py b/generate.py
index 1564323..16f2350 100755
--- a/generate.py
+++ b/generate.py
@@ -219,7 +219,11 @@ class Parser(object):
if l:
values.append( (l, str(i)) )
comment=comment.replace('@{', '').replace('@see', 'See').replace('\ingroup', '')
- yield (typ, name.strip(), values, comment)
+ if name is None:
+ name="libvlc_enum_t"
+ else:
+ name=name.strip()
+ yield (typ, name, values, comment)
comment=''
continue
More information about the vlc-commits
mailing list