equal
deleted
inserted
replaced
180 fn = getattr(self._peer, pycompat.sysstr(command)) |
180 fn = getattr(self._peer, pycompat.sysstr(command)) |
181 |
181 |
182 f = pycompat.futures.Future() |
182 f = pycompat.futures.Future() |
183 |
183 |
184 try: |
184 try: |
185 result = fn(**args) |
185 result = fn(**pycompat.strkwargs(args)) |
186 except Exception: |
186 except Exception: |
187 pycompat.future_set_exception_info(f, sys.exc_info()[1:]) |
187 pycompat.future_set_exception_info(f, sys.exc_info()[1:]) |
188 else: |
188 else: |
189 f.set_result(result) |
189 f.set_result(result) |
190 |
190 |