[vlc-devel] commit: python-ctypes: fix enum names conversion (Olivier Aubert )
git version control
git at videolan.org
Mon Aug 3 17:19:59 CEST 2009
vlc | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Aug 3 17:00:57 2009 +0200| [54d73b7c5ce101c030f180e53ed9fc50476815eb] | committer: Olivier Aubert
python-ctypes: fix enum names conversion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=54d73b7c5ce101c030f180e53ed9fc50476815eb
---
bindings/python-ctypes/generate.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bindings/python-ctypes/generate.py b/bindings/python-ctypes/generate.py
index 99d0c26..d3b5d23 100755
--- a/bindings/python-ctypes/generate.py
+++ b/bindings/python-ctypes/generate.py
@@ -234,7 +234,7 @@ def generate_enums(enums):
n=k.split('_')[-1]
if len(n) == 1:
# Single character. Some symbols use 1_1, 5_1, etc.
- n="_".join( k.split('_')[:-2] )
+ n="_".join( k.split('_')[-2:] )
if re.match('^[0-9]', n):
# Cannot start an identifier with a number
n='_'+n
More information about the vlc-devel
mailing list