@staticmethod<EOL><INDENT>def _parse_os_release_content(lines):<DEDENT>
props = {}<EOL>lexer = shlex.shlex(lines, posix=True)<EOL>lexer.whitespace_split = True<EOL>if sys.version_info[<NUM_LIT:0>] == <NUM_LIT:2> and isinstance(lexer.wordchars, bytes):<EOL><INDENT>lexer.wordchars = lexer.wordchars.decode('<STR_LIT>')<EOL><DEDENT>tokens = list(lexer)<EOL>for token in tokens:<EOL><INDENT>if '<STR_LIT:=>' in token:<EOL><INDENT>k, v = token.split('<STR_LIT:=>', <NUM_LIT:1>)<EOL>if isinstance(v, bytes):<EOL><INDENT>v = v.decode('<STR_LIT:utf-8>')<EOL><DEDENT>props[k.lower()] = v<EOL>if k == '<STR_LIT>':<EOL><INDENT>codename = re.search(r'<STR_LIT>', v)<EOL>if codename:<EOL><INDENT>codename = codename.group()<EOL>codename = codename.strip('<STR_LIT>')<EOL>codename = codename.strip('<STR_LIT:U+002C>')<EOL>codename = codename.strip()<EOL>props['<STR_LIT>'] = codename<EOL><DEDENT>else:<EOL><INDENT>props['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return props<EOL>
Parse the lines of an os-release file.

Parameters:

* lines: Iterable through the lines in the os-release file.
         Each line must be a unicode string or a UTF-8 encoded byte
         string.

Returns:
    A dictionary containing all information items.