Mercurial > hg
diff hgext/mq.py @ 37521:2d00058ac2f8
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
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 10 Apr 2018 18:56:19 +0530 |
parents | fa6cdd6668e1 |
children | 58230f4fcc0b |
line wrap: on
line diff
--- 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: