

def _rpc(self, method, *args):
    data = {
        'id': method.id,
        'method': method,
        'params': args,
    }
    request = json.dumps(data)
    self.client.write((request + '\n'))
    self.client.flush()
    response = self.client.readline()
    self.id += 1
    result = json.loads(response)
    if (result['error'] is not None):
        print(result['error'])
    return Result(id=result['id'], result=result['result'], error=result['error'])

dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/ase/android.py Android._rpc/VarMisuse@21/25 `self`->`method`