beremiz
Clone
Summary
Browse
Changes
Graph
fix pylint error '(no-self-argument) Method should have "self" as first argument'
2017-10-11, Andrey Skvortsov
616c3f4bcbcb
fix pylint error '(no-self-argument) Method should have "self" as first argument'
from pyjs.jsonrpc import JSONRPCServiceBase
class JSONRPCService(JSONRPCServiceBase):
def serve(self):
return self.process(request.body.read())
def __call__(self, func):
self.methods[func.__name__] = func
return func