Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 37670:719b8cb22936
localrepo: add some overlooked strkwargs love for py3
Differential Revision: https://phab.mercurial-scm.org/D3337
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 13 Apr 2018 18:28:58 -0400 |
parents | 1cb54e6193a6 |
children | f83cb91b052e |
comparison
equal
deleted
inserted
replaced
37669:1cb54e6193a6 | 37670:719b8cb22936 |
---|---|
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 |