[vlc-commits] python binding: fix docstring regexp + add a string to free
Olivier Aubert
git at videolan.org
Thu Jan 4 23:46:13 CET 2018
vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Thu Jan 4 23:34:00 2018 +0100| [d5f4fdfd6fa8691dcacb29b403572056e1d96d61] | committer: Olivier Aubert
python binding: fix docstring regexp + add a string to free
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=d5f4fdfd6fa8691dcacb29b403572056e1d96d61
---
generator/generate.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/generator/generate.py b/generator/generate.py
index 1211d67..9b6aeca 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -56,7 +56,7 @@ __all__ = ('Parser',
# Version number MUST have a major < 10 and a minor < 99 so that the
# generated dist version can be correctly generated.
-__version__ = '1.0'
+__version__ = '1.1'
_debug = False
@@ -111,6 +111,7 @@ free_string_funcs = set((
'libvlc_video_get_marquee_string',
'libvlc_audio_output_device_longname',
'libvlc_audio_output_device_id',
+ 'libvlc_audio_output_device_get',
'libvlc_vlm_show_media',
))
@@ -132,7 +133,7 @@ _VLC_PUBLIC_API_ = 'LIBVLC_API'
# Precompiled regexps
api_re = re.compile('(?:LIBVLC_DEPRECATED\s+)?' + _VLC_PUBLIC_API_ + '\s+(\S+\s+.+?)\s*\(\s*(.+?)\s*\)')
at_param_re = re.compile('(@param\s+\S+)(.+)')
-bs_param_re = re.compile('\\param\s+(\S+)')
+bs_param_re = re.compile(r'\\param\s+(\S+)')
class_re = re.compile('class\s+(\S+):')
def_re = re.compile('^\s+def\s+(\w+)', re.MULTILINE)
enum_type_re = re.compile('^(?:typedef\s+)?enum')
More information about the vlc-commits
mailing list