[glibmm] h2def.py: clean_func() also strip *_DEPRECATE_IN_*_FOR () without a space.



commit b8a81fd9ab5b3326bdab8f18734bd81302c422bf
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 28 10:18:34 2014 +0100

    h2def.py: clean_func() also strip *_DEPRECATE_IN_*_FOR () without a space.
    
    * tools/defs_gen/h2def.py: Because clutter has lines such as this:
      CLUTTER_DEPRECATED_IN_1_6_FOR(clutter_actor_animate and ClutterActor:depth)
      without a space after the FOR.

 tools/defs_gen/h2def.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py
index 3ffbd7c..3d87781 100755
--- a/tools/defs_gen/h2def.py
+++ b/tools/defs_gen/h2def.py
@@ -305,7 +305,7 @@ def clean_func(buf):
     buf = pat.sub('', buf)
 
     #strip *_DEPRECATED_IN_*_FOR (*):
-    pat = re.compile(r"""[A-Z]+_DEPRECATED_IN_[1-9]_([1-9]*)_FOR \(\S*\)\S*""", re.MULTILINE)
+    pat = re.compile(r"""[A-Z]+_DEPRECATED_IN_[1-9]_([1-9]*)_FOR\s*\(\S*\)\S*""", re.MULTILINE)
     buf = pat.sub('', buf)
 
     #strip *_DEPRECATED*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]