[gobject-introspection] sectionparser: Remove the main subsection
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] sectionparser: Remove the main subsection
- Date: Tue, 7 May 2013 18:26:51 +0000 (UTC)
commit 190d9a50032eaf457f882f36fcfe9cb0d66fc8b8
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
https://bugzilla.gnome.org/show_bug.cgi?id=699856
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]