changeset 36106:c33a99506e13

py3: compare against bytes instead of str Differential Revision: https://phab.mercurial-scm.org/D2152
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 11 Feb 2018 15:55:47 -0800
parents f49c3ee5b02f
children bff95b002e33
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: