equal
deleted
inserted
replaced
3238 else: |
3238 else: |
3239 with peer.commandexecutor() as e: |
3239 with peer.commandexecutor() as e: |
3240 res = e.callcommand(command, args).result() |
3240 res = e.callcommand(command, args).result() |
3241 |
3241 |
3242 if isinstance(res, wireprotov2peer.commandresponse): |
3242 if isinstance(res, wireprotov2peer.commandresponse): |
3243 val = list(res.cborobjects()) |
3243 val = res.objects() |
3244 ui.status(_('response: %s\n') % |
3244 ui.status(_('response: %s\n') % |
3245 stringutil.pprint(val, bprefix=True, indent=2)) |
3245 stringutil.pprint(val, bprefix=True, indent=2)) |
3246 else: |
3246 else: |
3247 ui.status(_('response: %s\n') % |
3247 ui.status(_('response: %s\n') % |
3248 stringutil.pprint(res, bprefix=True, indent=2)) |
3248 stringutil.pprint(res, bprefix=True, indent=2)) |