py3: use bytes instead of str in isinstance()
authorPulkit Goyal <pulkit@yandex-team.ru>
Tue, 05 Mar 2019 03:33:41 +0530
changeset 41841 b1d07f4614a6
parent 41840 d6569f1e9b37
child 41842 28842adf8ed5
py3: use bytes instead of str in isinstance() We use bytes everywhere. Differential Revision: https://phab.mercurial-scm.org/D6070
mercurial/tags.py
--- a/mercurial/tags.py	Tue Feb 12 19:08:17 2019 +0100
+++ b/mercurial/tags.py	Tue Mar 05 03:33:41 2019 +0530
@@ -548,7 +548,7 @@
 
 def _tag(repo, names, node, message, local, user, date, extra=None,
          editor=False):
-    if isinstance(names, str):
+    if isinstance(names, bytes):
         names = (names,)
 
     branches = repo.branchmap()