add options function to config object
This commit is contained in:
parent
aa9f455a5f
commit
7a7ca31d5e
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user