[vlc-commits] python: remove old workaround
Olivier Aubert
git at videolan.org
Fri Jul 26 01:37:25 CEST 2019
vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Thu Apr 4 14:37:49 2019 +0200| [4378c32c8baf3b3b26e584e16708dd01c8b8a528] | committer: Olivier Aubert
python: remove old workaround
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=4378c32c8baf3b3b26e584e16708dd01c8b8a528
---
generator/generate.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/generator/generate.py b/generator/generate.py
index 9394a82..7372ef2 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -437,8 +437,6 @@ class Val(object):
n = t[-1]
# Special case for debug levels and roles (with non regular name)
n = re.sub('^(LIBVLC_|role_|marquee_|adjust_|AudioChannel_|AudioOutputDevice_)', '', n)
- if len(n) <= 1: # single char name
- n = '_'.join( t[-2:] ) # some use 1_1, 5_1, etc.
if n[0].isdigit(): # can't start with a number
n = '_' + n
if n == 'None': # can't use a reserved python keyword
More information about the vlc-commits
mailing list