summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-03-28 13:27:12 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-05-07 13:48:48 -0400
commit190d9a50032eaf457f882f36fcfe9cb0d66fc8b8 (patch)
tree7c391efa4b01b3e9db2d8f632ef13351471a04d1
parent95b18d1db77119c575462006c4d58ba7a47c8732 (diff)
downloadgobject-introspection-190d9a50032eaf457f882f36fcfe9cb0d66fc8b8.tar.gz
sectionparser: Remove the main subsection
This isn't how subsections work https://bugzilla.gnome.org/show_bug.cgi?id=699856
-rw-r--r--giscanner/sectionparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/sectionparser.py b/giscanner/sectionparser.py
index ee023f31..9637c0e5 100644
--- a/giscanner/sectionparser.py
+++ b/giscanner/sectionparser.py
@@ -28,7 +28,6 @@ class Section(object):
self.file = None
self.title = None
self.includes = None
- self.main_subsection = Subsection(None)
self.subsections = []
class Subsection(object):
@@ -50,7 +49,8 @@ def parse_sections_file(lines):
if line == "<SECTION>":
current_section = Section()
sections.append(current_section)
- current_subsection = current_section.main_subsection
+ current_subsection = Subsection(None)
+ current_section.subsections.append(current_subsection)
continue
if line == "</SECTION>":