# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-10 13:26:19 # Node ID 2d00058ac2f8d9ddb7c2cb6f7ee40cc2319275ba # Parent fa6cdd6668e1531e8d8ec99c467081b08850adce 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 diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -677,7 +677,7 @@ class queue(object): 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: