add options function to config object

This commit is contained in:
Emil Lerch 2023-04-22 14:45:01 -07:00
parent aa9f455a5f
commit 7a7ca31d5e
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,9 @@ class ConfigObj:
def get(self, section, key):
return self.config.get(section, key)
def options(self, section):
return self.config.options(section)
def set(self, section, key, value):
return self.config.set(section, key, value)
@ -47,6 +50,9 @@ class BFConfigParser:
return ''
return ret
def options(self, section):
return self.cfg_obj.options(section)
def set(self, section, key, value):
self.cfg_obj.set(section, key, str(value))