parameters: (self, filename=None)
docstring: Read the Mbed TLS configuration file.
docstring_summary: Read the Mbed TLS configuration file.
docstring_tokens: Read the Mbed TLS configuration file .
function: def __init__(self, filename=None):
          """Read the Mbed TLS configuration file."""
          if filename is None:
              for candidate in self.default_path:
                  if os.path.lexists(candidate):
                      filename = candidate
                      break
              else:
                  raise Exception('Mbed TLS configuration file not found',
                                  self.default_path)
          super().__init__()
          self.filename = filename
          self.current_section = 'header'
          with open(filename, 'r', encoding='utf-8') as file:
              self.templates = [self._parse_line(line) for line in file]
          self.current_section = None
function_tokens: def __init__ ( self , filename = None ) : if filename is None : for candidate in self . default_path : if os . path . lexists ( candidate ) : filename = candidate break else : raise Exception ( 'Mbed TLS configuration file not found' , self . default_path ) super ( ) . __init__ ( ) self . filename = filename self . current_section = 'header' with open ( filename , 'r' , encoding = 'utf-8' ) as file : self . templates = [ self . _parse_line ( line ) for line in file ] self . current_section = None