summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2014-03-28 10:18:34 +0100
committerMurray Cumming <murrayc@murrayc.com>2014-03-28 10:18:34 +0100
commitb8a81fd9ab5b3326bdab8f18734bd81302c422bf (patch)
treeacd2117415ea55a06a82f525e9b2cd02d33f7875
parentb05264b38ecfa9cc99cb06d72c35d9faaa51aeac (diff)
downloadglibmm-b8a81fd9ab5b3326bdab8f18734bd81302c422bf.tar.gz
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.
-rwxr-xr-xtools/defs_gen/h2def.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py
index 3ffbd7cb..3d877815 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*