summaryrefslogtreecommitdiffstats
path: root/src/ogConfig.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-02-21 11:51:43 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-02-21 12:57:54 +0100
commit3917c3675f109a3330120fda403d5562ebf9e3fa (patch)
treefc7921721ebc5fb66741d29351ae7b540ebba9bb /src/ogConfig.py
parent54c0ebf0983d6144c6cb7597290beb1e8bb39e7b (diff)
pep-0008 cleanup
From pep-0008: Method Names and Instance Variables Use the function naming rules: lowercase with words separated by underscores as necessary to improve readability.
Diffstat (limited to 'src/ogConfig.py')
-rw-r--r--src/ogConfig.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ogConfig.py b/src/ogConfig.py
index 1763b39..824c464 100644
--- a/src/ogConfig.py
+++ b/src/ogConfig.py
@@ -12,21 +12,21 @@ class ogConfig:
def __init__(self):
self.parser = configparser.ConfigParser()
- def parserFile(self, path):
+ def parser_file(self, path):
self.parser.read(path)
if len(self.parser.sections()) == 0:
return False
return True
- def getSections(self):
+ def get_sections(self):
return self.parser.sections()
- def getContainsSection(self, section):
+ def get_contains_section(self, section):
return section in self.parser
- def getValueSection(self, section, key):
- if (not self.getContainsSection(section)):
+ def get_value_section(self, section, key):
+ if (not self.get_contains_section(section)):
return ''
return self.parser[section][key]