@@ -1116,30 +1116,8 @@ def _handle_header(self, st, mo, fpname):
11161116 def _handle_option (self , st , line , fpname ):
11171117 # an option line?
11181118 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 :
11431121 mo = self ._optcre .match (line .clean )
11441122 if mo :
11451123 st .optname , vi , optval = mo .group ('option' , 'vi' , 'value' )
0 commit comments