[glibmm] h2def.py: Handle *_DEPRECATED_IN_* and AVAILABLE_IN_* with 0 digits.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] h2def.py: Handle *_DEPRECATED_IN_* and AVAILABLE_IN_* with 0 digits.
- Date: Fri, 28 Mar 2014 09:25:11 +0000 (UTC)
commit f19ae99a9d85936050463fb8f6c5b9bc64c7e2d4
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Mar 28 10:23:44 2014 +0100
h2def.py: Handle *_DEPRECATED_IN_* and AVAILABLE_IN_* with 0 digits.
* tools/defs_gen/h2def.py: clean_func(): Use 0-9 instead of just
1-9. clutter's headers showed that this was a problem.
tools/defs_gen/h2def.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py
index 3d87781..82651fe 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*\)\S*""", re.MULTILINE)
+ pat = re.compile(r"""[A-Z]+_DEPRECATED_IN_[0-9]_([0-9]*)_FOR\s*\(\S*\)\S*""", re.MULTILINE)
buf = pat.sub('', buf)
#strip *_DEPRECATED*
@@ -313,7 +313,7 @@ def clean_func(buf):
buf = pat.sub('', buf)
#strip *_AVAILABLE_IN_*
- pat = re.compile(r"""[A-Z]+_AVAILABLE_IN_[1-9]_[1-9]\S*""", re.MULTILINE)
+ pat = re.compile(r"""[A-Z]+_AVAILABLE_IN_[0-9]_[0-9]\S*""", re.MULTILINE)
buf = pat.sub('', buf)
#strip *_AVAILABLE_IN_ALL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]