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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Wed Apr 11 08:31:51 EDT 2018


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

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:



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


More information about the Mercurial-devel mailing list