changeset 43744:40db695040eb stable

histedit: fix an `isinstance(nodelist, str)` check for py3 Differential Revision: https://phab.mercurial-scm.org/D7536
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 30 Nov 2019 03:01:44 -0500
parents 66210a20f727
children 24d0189238f1
files hgext/histedit.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():