[vlc-commits] commit: python-vlc: convert bug/note/warning/ version fields into epydoc syntax (Olivier Aubert )

git at videolan.org git at videolan.org
Thu Nov 18 18:45:30 CET 2010


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Thu Nov 18 18:17:43 2010 +0100| [63e77629433736132b8d3c61e14b652af33b0cf0] | committer: Olivier Aubert 

python-vlc: convert bug/note/warning/version fields into epydoc syntax

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=63e77629433736132b8d3c61e14b652af33b0cf0
---

 generate.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/generate.py b/generate.py
index 10ef294..8662a58 100755
--- a/generate.py
+++ b/generate.py
@@ -557,8 +557,9 @@ class _Enum(ctypes.c_ulong):
         """
         lines=comment.replace('@{', '').replace('\\ingroup', '') \
                      .replace('@see', 'See').replace('\\see', 'See') \
-                     .replace('\\note', 'NOTE:').replace('\\warning', 'WARNING:') \
                      .replace('\\param', '@param').replace('\\return', '@return') \
+                     .replace('\\note', '@note:').replace('\\warning', '@warning:') \
+                     .replace('\\bug', '@bug:').replace('\\version', '@version:') \
                      .strip().splitlines()
 
         doc = [ l for l in lines if '@param' not in l and '@return' not in l ]



More information about the vlc-commits mailing list