def _parse_date_rfc822(dt):
 try:
  m = _rfc822_match(dt.lower()).groupdict(0)
 except AttributeError:
  return None
 return _parse_date_group_rfc822(m)

def _parse_date_rfc822 ( dt ) : try : m = _rfc822_match ( dt . lower ( ) ) . groupdict ( 0 ) except AttributeError : return None return _parse_date_group_rfc822 ( m )
parse rfc 822 dates and times .