def get_map(options, data):
 try:
  map_f = open(options.map_fname, 'U').readlines()
 except (TypeError, IOError):
  raise MissingFileError('Mapping file required for this analysis')
 data['map'] = parse_mapping_file(map_f)
 return data['map']

def get_map ( options , data ) : try : map_f = open ( options . map_fname , 'U' ) . readlines ( ) except ( TypeError , IOError ) : raise MissingFileError ( 'Mapping file required for this analysis' ) data [ 'map' ] = parse_mapping_file ( map_f ) return data [ 'map' ]
opens and returns mapping data .