summaryrefslogtreecommitdiff
path: root/giscanner/sectionparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/sectionparser.py')
-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>":