beremiz
Clone
Summary
Browse
Changes
Graph
fix pylint warning '(old-style-class) Old-style class defined.'
2017-10-09, Andrey Skvortsov
1b8b5324506c
fix pylint warning '(old-style-class) Old-style class defined.'
This warning is ignored for classes from PyJSLib, because library
overrides base object class.
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