py3: compare against bytes instead of str
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 11 Feb 2018 15:55:47 -0800
changeset 36106 c33a99506e13
parent 36105 f49c3ee5b02f
child 36107 bff95b002e33
py3: compare against bytes instead of str Differential Revision: https://phab.mercurial-scm.org/D2152
hgext/mq.py
--- a/hgext/mq.py	Sun Feb 11 19:39:15 2018 -0800
+++ b/hgext/mq.py	Sun Feb 11 15:55:47 2018 -0800
@@ -650,7 +650,7 @@
         self.seriesdirty = True
 
     def pushable(self, idx):
-        if isinstance(idx, str):
+        if isinstance(idx, bytes):
             idx = self.series.index(idx)
         patchguards = self.seriesguards[idx]
         if not patchguards: