def parse_test_files_option(opt):
 opt = str(opt)
 if (':' in opt):
  (f_name, rest) = opt.split(':', 1)
  return (f_name, list(map(int, rest.split(','))))
 else:
  return (opt, [])

def parse_test_files_option ( opt ) : opt = str ( opt ) if ( ':' in opt ) : ( f_name , rest ) = opt . split ( ':' , 1 ) return ( f_name , list ( map ( int , rest . split ( ',' ) ) ) ) else : return ( opt , [ ] )
parse option passed to --test-files into a key-value pair .