# HG changeset patch # User Gregory Szorc # Date 1550178996 28800 # Node ID 3d5543599df82876a877c4650bdbd83f1bb05ae2 # Parent e37bd7ccfee3138618f52e8fe83bcd809a26d775 remotefilelog: remove strkwargs() The previous commit activated previously unused code paths on Python 3 and revealed that we were calling strkwargs() on a dict that already had str keys. The only caller of _forceprefetch() is _adjustlinknode() a few lines up and the static commonlogkwargs dict features str keys. Differential Revision: https://phab.mercurial-scm.org/D5958 diff -r e37bd7ccfee3 -r 3d5543599df8 hgext/remotefilelog/remotefilectx.py --- a/hgext/remotefilelog/remotefilectx.py Wed Feb 13 16:31:20 2019 -0800 +++ b/hgext/remotefilelog/remotefilectx.py Thu Feb 14 13:16:36 2019 -0800 @@ -15,7 +15,6 @@ context, error, phases, - pycompat, util, ) from . import shallowutil @@ -316,7 +315,7 @@ finally: elapsed = time.time() - start repo.ui.log('linkrevfixup', logmsg + '\n', elapsed=elapsed * 1000, - **pycompat.strkwargs(commonlogkwargs)) + **commonlogkwargs) def _verifylinknode(self, revs, linknode): """