def pub_dates(soup):
pub_dates = []<EOL>tags = raw_parser.pub_date(soup)<EOL>for tag in tags:<EOL><INDENT>pub_date = OrderedDict()<EOL>copy_attribute(tag.attrs, '<STR_LIT>', pub_date)<EOL>copy_attribute(tag.attrs, '<STR_LIT>', pub_date)<EOL>copy_attribute(tag.attrs, '<STR_LIT>', pub_date)<EOL>for tag_attr in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if tag_attr in tag.attrs:<EOL><INDENT>(day, month, year) = ymd(tag)<EOL>pub_date['<STR_LIT>'] = day<EOL>pub_date['<STR_LIT>'] = month<EOL>pub_date['<STR_LIT>'] = year<EOL>pub_date['<STR_LIT:date>'] = date_struct_nn(year, month, day)<EOL><DEDENT><DEDENT>pub_dates.append(pub_date)<EOL><DEDENT>return pub_dates<EOL>
return a list of all the pub dates