kube-tarian / git-bridge

Consider removing the commented out code block PY-W0069
Anti-pattern
Major
2 years ago2 years old
Consider removing the commented out code block
104    print(client.call("Echo123", "A1", "B2", "C3"))
105    print(client.call("EchoStruct", {"A" :"Aa", "B":"Bb", "C":"Cc"}))
106
107# def doCheckSocket(port):108#     print(">>>> port: ", port, " <<<<<")
109#     sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
110#     result = sock.connect_ex(('127.0.0.1', port))
Consider removing the commented out code block
 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:
 78            f.write(serialized)