@@ -1116,30 +1116,8 @@ def _handle_header(self, st, mo, fpname):
1116
1116
def _handle_option (self , st , line , fpname ):
1117
1117
# an option line?
1118
1118
st .indent_level = st .cur_indent_level
1119
- # is it a section header?
1120
- mo = self .SECTCRE .match (line .clean )
1121
- if mo :
1122
- st .sectname = mo .group ('header' )
1123
- if st .sectname in self ._sections :
1124
- if self ._strict and st .sectname in st .elements_added :
1125
- raise DuplicateSectionError (st .sectname , fpname ,
1126
- st .lineno )
1127
- st .cursect = self ._sections [st .sectname ]
1128
- st .elements_added .add (st .sectname )
1129
- elif st .sectname == self .default_section :
1130
- st .cursect = self ._defaults
1131
- else :
1132
- st .cursect = self ._dict ()
1133
- self ._sections [st .sectname ] = st .cursect
1134
- self ._proxies [st .sectname ] = SectionProxy (self , st .sectname )
1135
- st .elements_added .add (st .sectname )
1136
- # So sections can't start with a continuation line
1137
- st .optname = None
1138
- # no section header in the file?
1139
- elif st .cursect is None :
1140
- raise MissingSectionHeaderError (fpname , st .lineno , line )
1141
- # an option line?
1142
- else :
1119
+
1120
+ if True :
1143
1121
mo = self ._optcre .match (line .clean )
1144
1122
if mo :
1145
1123
st .optname , vi , optval = mo .group ('option' , 'vi' , 'value' )
0 commit comments