# HG changeset patch # User Gregory Szorc # Date 2019-02-14 21:16:36 # 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 --git a/hgext/remotefilelog/remotefilectx.py b/hgext/remotefilelog/remotefilectx.py --- a/hgext/remotefilelog/remotefilectx.py +++ b/hgext/remotefilelog/remotefilectx.py @@ -15,7 +15,6 @@ from mercurial import ( context, error, phases, - pycompat, util, ) from . import shallowutil @@ -316,7 +315,7 @@ class remotefilectx(context.filectx): finally: elapsed = time.time() - start repo.ui.log('linkrevfixup', logmsg + '\n', elapsed=elapsed * 1000, - **pycompat.strkwargs(commonlogkwargs)) + **commonlogkwargs) def _verifylinknode(self, revs, linknode): """