def getConfig(self, section = None):
data = {}<EOL>if section is None:<EOL><INDENT>for s in self.config.sections():<EOL><INDENT>if '<STR_LIT:/>' in s:<EOL><INDENT>parent, _s = s.split('<STR_LIT:/>')<EOL>data[parent][_s] = dict(self.config.items(s))<EOL><DEDENT>else:<EOL><INDENT>data[s] = dict(self.config.items(s))<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>data = dict(self.config.items(section))<EOL><DEDENT>return data<EOL>
Returns a dictionary which contains the current config. If a section is setted,
only will returns the section config

Args:
        section (str): (Optional) Section name.

Returns:
        dict: Representation of current config