rebase: keep str-keyed opts long enough to make `action` a str
This is just another little py3 cleanup.
Differential Revision: https://phab.mercurial-scm.org/D10891
from __future__ import absolute_importimport hashlibtry: from ..thirdparty import sha1dc # pytype: disable=import-error sha1 = sha1dc.sha1except (ImportError, AttributeError): sha1 = hashlib.sha1