beremiz
Clone
Summary
Browse
Changes
Graph
fix error for functions with VAR_IN_OUT
2017-10-10, Andrey Skvortsov
46d9955e1101
fix error for functions with VAR_IN_OUT
The problem was found by pylint '(used-before-assignment) Using variable "X" before assignment'
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