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

login
register
mail settings
Submitter phabricator
Date April 11, 2018, 12:31 p.m.
Message ID <7282eaa6fc64683acc6eb3522fbf0a25@localhost.localdomain>
Download mbox | patch
Permalink /patch/30685/
State Not Applicable
Headers show

Comments

phabricator - April 11, 2018, 12:31 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2d00058ac2f8: 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/D3215?vs=7927&id=7967

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -677,7 +677,7 @@ 
             write = self.ui.warn
 
         if all_patches or self.ui.verbose:
-            if isinstance(idx, str):
+            if isinstance(idx, bytes):
                 idx = self.series.index(idx)
             pushable, why = self.pushable(idx)
             if all_patches and pushable: