[gobject-introspection/wip/docs: 6/16] sectionparser: Fix subsection regex
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/docs: 6/16] sectionparser: Fix subsection regex
- Date: Thu, 4 Apr 2013 19:44:58 +0000 (UTC)
commit 05fe82f6422507fab2b6b2df4117f9786c12f308
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Mar 27 15:49:07 2013 -0400
sectionparser: Fix subsection regex
giscanner/sectionparser.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/sectionparser.py b/giscanner/sectionparser.py
index 6230b5c..273cdeb 100644
--- a/giscanner/sectionparser.py
+++ b/giscanner/sectionparser.py
@@ -66,7 +66,7 @@ def parse_sections_file(lines):
current_section.title = match.groupdict['contents']
continue
- match = re.match(r"<SUBSECTION (?P<name>).*>", line)
+ match = re.match(r"<SUBSECTION (?P<name>.*)>", line)
if match:
current_subsection = Subsection(match.groupdict['name'])
current_section.subsections.append(current_subsection)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]