# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1523366779 -19800 # 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 -r fa6cdd6668e1 -r 2d00058ac2f8 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: