def read_lcmt_level2_body(header, raw, curline): global logins login = raw[header['who']] when = int(raw[header['when']]) month_aligned_when = lib.month_align(when) # count if not logins.has_key(login): logins[login] = {} if not logins[login].has_key(month_aligned_when): logins[login][month_aligned_when] = 0 logins[login][month_aligned_when] += 1
def read_lcmt_level2_body(header, raw, curline): global logins global cur_set global cur_bug_id # body bug_id = raw[header['bug_id']] # new bug if bug_id != cur_bug_id: cur_bug_id = bug_id cur_set = set() login = raw[header['who']] when = int(raw[header['when']]) month_aligned_when = lib.month_align(when) cur_set.add(login) if not logins.has_key(login): logins[login] = {} if not logins[login].has_key(month_aligned_when): logins[login][month_aligned_when] = contacters() logins[login][month_aligned_when].logins = cur_set.union(logins[login][month_aligned_when].logins)