summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-03-27 15:48:50 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-05-07 13:48:48 -0400
commit40623576a2558fda814c0dcf135d397b8674f420 (patch)
tree8c741cb5494f485514c757d6e4dabbd7499be5ad
parent88c747c9bbc3c1216a526cc65f9860354cdab0a4 (diff)
downloadgobject-introspection-40623576a2558fda814c0dcf135d397b8674f420.tar.gz
sectionparser: Fix regex matching
https://bugzilla.gnome.org/show_bug.cgi?id=699856
-rw-r--r--giscanner/sectionparser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/giscanner/sectionparser.py b/giscanner/sectionparser.py
index 042a753f..6230b5cc 100644
--- a/giscanner/sectionparser.py
+++ b/giscanner/sectionparser.py
@@ -56,17 +56,17 @@ def parse_sections_file(lines):
current_section = None
continue
- match = re.match(line, r"<FILE>(?P<contents>.*)</FILE>")
+ match = re.match(r"<FILE>(?P<contents>.*)</FILE>", line)
if match:
current_section.file = match.groupdict['contents']
continue
- match = re.match(line, r"<TITLE>(?P<contents>.*)</TITLE>")
+ match = re.match(r"<TITLE>(?P<contents>.*)</TITLE>", line)
if match:
current_section.title = match.groupdict['contents']
continue
- match = re.match(line, r"<SUBSECTION (?P<name>).*>")
+ match = re.match(r"<SUBSECTION (?P<name>).*>", line)
if match:
current_subsection = Subsection(match.groupdict['name'])
current_section.subsections.append(current_subsection)