def parse_actor_and_date(line):
 (actor, epoch, offset) = ('', 0, 0)
 m = _re_actor_epoch.search(line)
 if m:
  (actor, epoch, offset) = m.groups()
 else:
  m = _re_only_actor.search(line)
  actor = (m.group(1) if m else (line or ''))
 return (Actor._from_string(actor), int(epoch), utctz_to_altz(offset))

def parse_actor_and_date ( line ) : ( actor , epoch , offset ) = ( '' , 0 , 0 ) m = _re_actor_epoch . search ( line ) if m : ( actor , epoch , offset ) = m . groups ( ) else : m = _re_only_actor . search ( line ) actor = ( m . group ( 1 ) if m else ( line or '' ) ) return ( Actor . _from_string ( actor ) , int ( epoch ) , utctz_to_altz ( offset ) )
parse out the actor info from a line like:: author tom preston-werner <tom@mojombo .