changeset 41841:b1d07f4614a6

py3: use bytes instead of str in isinstance() We use bytes everywhere. Differential Revision: https://phab.mercurial-scm.org/D6070
author Pulkit Goyal <pulkit@yandex-team.ru>
date Tue, 05 Mar 2019 03:33:41 +0530
parents d6569f1e9b37
children 28842adf8ed5
files mercurial/tags.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()