def _read_pam_header(self, data):
regroups = re.search(<EOL>b"<STR_LIT>"<EOL>b"<STR_LIT>"<EOL>b"<STR_LIT>", data).groups()<EOL>self.header = regroups[<NUM_LIT:0>]<EOL>self.magicnum = b'<STR_LIT>'<EOL>for group in regroups[<NUM_LIT:1>:]:<EOL><INDENT>key, value = group.split()<EOL>setattr(self, unicode(key).lower(), int(value))<EOL><DEDENT>matches = re.findall(b"<STR_LIT>", self.header)<EOL>self.tupltypes = [s.split(None, <NUM_LIT:1>)[<NUM_LIT:1>] for s in matches]<EOL>
Read PAM header and initialize instance.