def _revoked_to_list(revs):
 list_ = []
 for rev in revs:
  for (rev_name, props) in six.iteritems(rev):
   dict_ = {}
   for prop in props:
    for (propname, val) in six.iteritems(prop):
     if isinstance(val, datetime.datetime):
      val = val.strftime('%Y-%m-%d %H:%M:%S')
     dict_[propname] = val
   list_.append(dict_)
 return list_

def _revoked_to_list ( revs ) : list_ = [ ] for rev in revs : for ( rev_name , props ) in six . iteritems ( rev ) : dict_ = { } for prop in props : for ( propname , val ) in six . iteritems ( prop ) : if isinstance ( val , datetime . datetime ) : val = val . strftime ( '%Y-%m-%d %H:%M:%S' ) dict_ [ propname ] = val list_ . append ( dict_ ) return list_
turn the mess of ordereddicts and lists into a list of dicts for use in the crl module .