def _parseStats(self, lines, parse_slabs = False):
info_dict = {}<EOL>info_dict['<STR_LIT>'] = {}<EOL>for line in lines:<EOL><INDENT>mobj = re.match('<STR_LIT>',  line)<EOL>if mobj:<EOL><INDENT>info_dict[mobj.group(<NUM_LIT:1>)] = util.parse_value(mobj.group(<NUM_LIT:2>), True)<EOL>continue<EOL><DEDENT>elif parse_slabs:<EOL><INDENT>mobj = re.match('<STR_LIT>',  line)<EOL>if mobj:<EOL><INDENT>(slab, key, val) = mobj.groups()[-<NUM_LIT:3>:]      <EOL>if not info_dict['<STR_LIT>'].has_key(slab):<EOL><INDENT>info_dict['<STR_LIT>'][slab] = {}<EOL><DEDENT>info_dict['<STR_LIT>'][slab][key] = util.parse_value(val, True)<EOL><DEDENT><DEDENT><DEDENT>return info_dict<EOL>
Parse stats output from memcached and return dictionary of stats-

        @param lines:       Array of lines of input text.
        @param parse_slabs: Parse slab stats if True.
        @return:            Stats dictionary.