# HG changeset patch # User Gregory Szorc # Date 1518393347 28800 # Node ID c33a99506e13fb5278f040d5ce56cdc09c8fa5b6 # Parent f49c3ee5b02f582346aa7802b5f2395e533ec23c py3: compare against bytes instead of str Differential Revision: https://phab.mercurial-scm.org/D2152 diff -r f49c3ee5b02f -r c33a99506e13 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: