(self)
| 1046 | return len(self._sections) + 1 # the default section |
| 1047 | |
| 1048 | def __iter__(self): |
| 1049 | # XXX does it break when underlying container state changed? |
| 1050 | return itertools.chain((self.default_section,), self._sections.keys()) |
| 1051 | |
| 1052 | def _read(self, fp, fpname): |
| 1053 | """Parse a sectioned configuration file. |