def _key_from_line(self, line):
    'Creates a keyword from a line\n\n        The method extracts the konfiguration keyword,\n        the associated value and, if present,\n        a comment from a line in the configuration file.\n        A configuration key object representing the extracted\n        keyword is created and returned.\n\n        Parameters\n        ----------\n        line: list\n            line to analyze\n\n        Returns\n        -------\n        configuration key  object\n        '
    items = line.split()
    if (len(items) > 1):
        keyword = items[0].strip()
        cpos = line.rfind(';')
        if (cpos < 0):
            keyvalue = line[(line.find(keyword) + len(keyword)):].strip()
            comment = None
        else:
            tmp_val = line[(line.find(keyword) + len(keyword)):].strip()
            keyvalue = tmp_val.split(';')[0].strip()
            comment = tmp_val.split(';')[1].strip()
    else:
        err_msg = (('Only one item in: ' + line) + ' !')
        raise aXeError(err_msg)
    return ConfKey(keyword, keyvalue, comment)
Creates a keyword from a line

The method extracts the konfiguration keyword,
the associated value and, if present,
a comment from a line in the configuration file.
A configuration key object representing the extracted
keyword is created and returned.

Parameters
----------
line: list
    line to analyze

Returns
-------
configuration key  object
def _key_from_line(self, line):
    'Creates a keyword from a line\n\n        The method extracts the konfiguration keyword,\n        the associated value and, if present,\n        a comment from a line in the configuration file.\n        A configuration key object representing the extracted\n        keyword is created and returned.\n\n        Parameters\n        ----------\n        line: list\n            line to analyze\n\n        Returns\n        -------\n        configuration key  object\n        '
    items = line.split()
    if (len(items) > 1):
        keyword = items[0].strip()
        cpos = line.rfind(';')
        if (cpos < 0):
            keyvalue = line[(line.find(keyword) + len(keyword)):].strip()
            comment = None
        else:
            tmp_val = line[(line.find(keyword) + len(keyword)):].strip()
            keyvalue = tmp_val.split(';')[0].strip()
            comment = tmp_val.split(';')[1].strip()
    else:
        err_msg = (('Only one item in: ' + line) + ' !')
        raise aXeError(err_msg)
    return ConfKey(keyword, keyvalue, comment)