kube-tarian / git-bridge

Useless inheritance from object PYL-R0205
Anti-pattern
Major
2 years ago2 years old
Class 'EchoHandler' inherits from object, can be safely removed from bases in python3
 81            f.write(serialized)
 82
 83def doRpcServer(port, stopTimeSec):
 84    class EchoHandler(object): 85        def Echo123(self, msg1, msg2, msg3):
 86            return ("1:%s 2:%s 3:%s" % (msg1.decode("utf-8"), msg2.decode("utf-8"), msg3.decode("utf-8")))
 87        def EchoStruct(self, msg):