def parse_assigned_metadata(csvfile):
 with open(csvfile, 'rb') as f:
  for record in csv.reader(f):
   module = record[0]
   supported_by = record[1]
   status = []
   if record[2]:
    status.append('stableinterface')
   if record[4]:
    status.append('deprecated')
   if record[5]:
    status.append('removed')
   if record[6]:
    status.append('tested')
   if ((not status) or record[3]):
    status.append('preview')
   (yield (module, {'version': '1.0', 'supported_by': supported_by, 'status': status}))

def parse_assigned_metadata ( csvfile ) : with open ( csvfile , 'rb' ) as f : for record in csv . reader ( f ) : module = record [ 0 ] supported_by = record [ 1 ] status = [ ] if record [ 2 ] : status . append ( 'stableinterface' ) if record [ 4 ] : status . append ( 'deprecated' ) if record [ 5 ] : status . append ( 'removed' ) if record [ 6 ] : status . append ( 'tested' ) if ( ( not status ) or record [ 3 ] ) : status . append ( 'preview' ) ( yield ( module , { 'version' : '1.0' , 'supported_by' : supported_by , 'status' : status } ) )
fields: :0: module name :1: supported_by string .