kube-tarian / git-bridge

Implicit enumerate calls found PTC-W0060
Anti-pattern
Major
2 years ago2 years old
Consider replacing range(len(l)) with enumerate(l)
 71
 72def build_test_data(destdir):
 73    l = get_test_data_list()
 74    for i in range(len(l)): 75        # packer = msgpack.Packer()
 76        serialized = msgpack.dumps(l[i])
 77        with open(os.path.join(destdir, str(i) + '.msgpack.golden'), 'wb') as f: