From 190d9a50032eaf457f882f36fcfe9cb0d66fc8b8 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 28 Mar 2013 13:27:12 -0400 Subject: sectionparser: Remove the main subsection This isn't how subsections work https://bugzilla.gnome.org/show_bug.cgi?id=699856 --- giscanner/sectionparser.py | 4 ++-- 1 file 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 == "
": 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 == "
": -- cgit v1.2.1