MCPcopy Index your code
hub / github.com/python/cpython / IsEmpty

Method IsEmpty

Lib/idlelib/config.py:121–124  ·  view source on GitHub ↗

Return True if no sections after removing empty sections.

(self)

Source from the content-addressed store, hash-verified

119 self.remove_section(section)
120
121 def IsEmpty(self):
122 "Return True if no sections after removing empty sections."
123 self.RemoveEmptySections()
124 return not self.sections()
125
126 def Save(self):
127 """Update user configuration file.

Callers 2

SaveMethod · 0.95
test_is_emptyMethod · 0.80

Calls 2

RemoveEmptySectionsMethod · 0.95
sectionsMethod · 0.45

Tested by 1

test_is_emptyMethod · 0.64