def _parse_date_rfc822_grubby(dt):
 _rfc822_date_grubby = ('%s %s %s' % (_rfc822_month, _rfc822_day, _rfc822_year))
 _rfc822_match_grubby = re.compile(('(?:%s[,]? )?%s(?: %s)?' % (_rfc822_dayname, _rfc822_date_grubby, _rfc822_time))).match
 try:
  m = _rfc822_match_grubby(dt.lower()).groupdict(0)
 except AttributeError:
  return None
 return _parse_date_group_rfc822(m)

def _parse_date_rfc822_grubby ( dt ) : _rfc822_date_grubby = ( '%s %s %s' % ( _rfc822_month , _rfc822_day , _rfc822_year ) ) _rfc822_match_grubby = re . compile ( ( '(?:%s[,]? )?%s(?: %s)?' % ( _rfc822_dayname , _rfc822_date_grubby , _rfc822_time ) ) ) . match try : m = _rfc822_match_grubby ( dt . lower ( ) ) . groupdict ( 0 ) except AttributeError : return None return _parse_date_group_rfc822 ( m )
parse date format similar to rfc 822 .