histedit: fix an `isinstance(nodelist, str)` check for py3 stable
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 30 Nov 2019 03:01:44 -0500
branchstable
changeset 43744 40db695040eb
parent 43743 66210a20f727
child 43745 24d0189238f1
histedit: fix an `isinstance(nodelist, str)` check for py3 Differential Revision: https://phab.mercurial-scm.org/D7536
hgext/histedit.py
--- a/hgext/histedit.py	Sat Nov 30 02:59:04 2019 -0500
+++ b/hgext/histedit.py	Sat Nov 30 03:01:44 2019 -0500
@@ -2574,7 +2574,7 @@
 
 
 def stripwrapper(orig, ui, repo, nodelist, *args, **kwargs):
-    if isinstance(nodelist, str):
+    if isinstance(nodelist, bytes):
         nodelist = [nodelist]
     state = histeditstate(repo)
     if state.inprogress():