# HG changeset patch # User Matt Harbison # Date 1575099522 18000 # Node ID 8accf5fa9930adecc32ee74252eea4c0c65759c7 # Parent d1b9d2c6ec96656ba66e0bf42018b0cb45071412 repair: fix an `isinstance(nodelist, str)` check for py3 All of the callers appear to pass a list, so this doesn't fix anything in core hg. But maybe out of tree extensions use this shortcut. Differential Revision: https://phab.mercurial-scm.org/D7533 diff -r d1b9d2c6ec96 -r 8accf5fa9930 mercurial/repair.py --- a/mercurial/repair.py Fri Nov 29 21:43:13 2019 +0100 +++ b/mercurial/repair.py Sat Nov 30 02:38:42 2019 -0500 @@ -130,7 +130,7 @@ cl = repo.changelog # TODO handle undo of merge sets - if isinstance(nodelist, str): + if isinstance(nodelist, bytes): nodelist = [nodelist] striplist = [cl.rev(node) for node in nodelist] striprev = min(striplist)