Home
last modified time | relevance | path

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

/external/python/cpython3/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:
848 if section != self.default_section:
881 if not section or section == self.default_section:
896 if not section or section == self.default_section:
916 self._write_section(fp, self.default_section,
937 if not section or section == self.default_section:
959 if key != self.default_section and not self.has_section(key):
[all …]
/external/python/cpython3/Lib/test/
Dtest_configparser.py44 default_section = configparser.DEFAULTSECT variable in CfgParserTestCaseClass
57 default_section=self.default_section,
100 E.append(self.default_section)
111 eq(cf.defaults(), cf[self.default_section])
241 cf[self.default_section]['this_value'] = '1'
242 cf[self.default_section]['that_value'] = '2'
248 self.assertFalse(cf.remove_section(self.default_section))
258 self.assertTrue(cf.remove_option(self.default_section, 'this_value'))
260 self.assertFalse(cf.remove_option(self.default_section, 'this_value'))
275 del cf[self.default_section]
[all …]
/external/python/cpython3/Doc/library/
Dconfigparser.rst630 * *default_section*, default value: ``configparser.DEFAULTSECT`` (that is:
641 ``parser_instance.default_section`` attribute and may be modified at runtime
874 …line_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section=configparser.…
897 When *default_section* is given, it specifies the name for the special
900 runtime using the ``default_section`` instance attribute.
925 *empty_lines_in_values*, *default_section* and *interpolation* were
1206 default_section=configparser.DEFAULTSECT[, \