py3: use bytes instead of str in isinstance()
authorPulkit Goyal <7895pulkit@gmail.com>
Tue, 10 Apr 2018 18:56:19 +0530
changeset 37521 2d00058ac2f8
parent 37520 fa6cdd6668e1
child 37522 58230f4fcc0b
py3: use bytes instead of str in isinstance() We deal with bytes internally and things should be bytes Differential Revision: https://phab.mercurial-scm.org/D3215
hgext/mq.py
--- a/hgext/mq.py	Tue Apr 10 18:55:35 2018 +0530
+++ b/hgext/mq.py	Tue Apr 10 18:56:19 2018 +0530
@@ -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: