Patchwork D6070: py3: use bytes instead of str in isinstance()

login
register
mail settings
Submitter phabricator
Date March 4, 2019, 11:12 p.m.
Message ID <93457d6555d0976094acacd4c72a4a63@localhost.localdomain>
Download mbox | patch
Permalink /patch/39056/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2019, 11:12 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb1d07f4614a6: py3: use bytes instead of str in isinstance() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6070?vs=14349&id=14354

REVISION DETAIL
  https://phab.mercurial-scm.org/D6070

AFFECTED FILES
  mercurial/tags.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: Kwan, mercurial-devel

Patch

diff --git a/mercurial/tags.py b/mercurial/tags.py
--- a/mercurial/tags.py
+++ b/mercurial/tags.py
@@ -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()