diff options
Diffstat (limited to 'coverage/tomlconfig.py')
-rw-r--r-- | coverage/tomlconfig.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/coverage/tomlconfig.py b/coverage/tomlconfig.py index 49282e92..a2d4c6e8 100644 --- a/coverage/tomlconfig.py +++ b/coverage/tomlconfig.py @@ -119,10 +119,14 @@ class TomlConfigParser: return False return option in data - def has_section(self, section): + def real_section(self, section): name, _ = self._get_section(section) return name + def has_section(self, section): + name, _ = self._get_section(section) + return bool(name) + def options(self, section): _, data = self._get_section(section) if data is None: |