Home
last modified time | relevance | path

Searched refs:default_section (Results 1 – 3 of 3) sorted by relevance

/third_party/python/Lib/test/
Dtest_configparser.py45 default_section = configparser.DEFAULTSECT variable in CfgParserTestCaseClass
58 default_section=self.default_section,
102 E.append(self.default_section)
113 eq(cf.defaults(), cf[self.default_section])
244 cf[self.default_section]['this_value'] = '1'
245 cf[self.default_section]['that_value'] = '2'
251 self.assertFalse(cf.remove_section(self.default_section))
261 self.assertTrue(cf.remove_option(self.default_section, 'this_value'))
263 self.assertFalse(cf.remove_option(self.default_section, 'this_value'))
278 del cf[self.default_section]
[all …]
/third_party/python/Lib/
Dconfigparser.py605 default_section=DEFAULTSECT, argument
613 self._proxies[default_section] = SectionProxy(self, default_section)
630 self.default_section=default_section
655 if section == self.default_section:
849 if section != self.default_section:
882 if not section or section == self.default_section:
897 if not section or section == self.default_section:
920 self._write_section(fp, self.default_section,
941 if not section or section == self.default_section:
963 if key != self.default_section and not self.has_section(key):
[all …]
/third_party/python/Doc/library/
Dconfigparser.rst660 * *default_section*, default value: ``configparser.DEFAULTSECT`` (that is:
671 ``parser_instance.default_section`` attribute and may be modified at runtime
904 …line_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section=configparser.…
927 When *default_section* is given, it specifies the name for the special
930 runtime using the ``default_section`` instance attribute.
955 *empty_lines_in_values*, *default_section* and *interpolation* were
1243 default_section=configparser.DEFAULTSECT[, \