[gobject-introspection/wip/docs: 2/4] sectionparser: Remove the main subsection
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/docs: 2/4] sectionparser: Remove the main subsection
- Date: Thu, 4 Apr 2013 20:52:33 +0000 (UTC)
commit 1dc8de9658b95ed35478ce0322e3b5089dee7976
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Mar 28 13:27:12 2013 -0400
sectionparser: Remove the main subsection
This isn't how subsections work
giscanner/sectionparser.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/sectionparser.py b/giscanner/sectionparser.py
index ee023f3..9637c0e 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>":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]