Mercurial > public > mercurial-scm > hg
diff mercurial/formatter.py @ 48932:176f1a0d15dc
py3: use int instead of pycompat.long
pycompat.long is aliased to int. So this should have no change in
functionality.
Differential Revision: https://phab.mercurial-scm.org/D12338
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 01 Mar 2022 20:50:34 -0800 |
parents | f254fc73d956 |
children | 642e31cb55f0 |
line wrap: on
line diff
--- a/mercurial/formatter.py Mon Feb 21 11:13:37 2022 -0700 +++ b/mercurial/formatter.py Tue Mar 01 20:50:34 2022 -0800 @@ -141,7 +141,7 @@ Returns False if the object is unsupported or must be pre-processed by formatdate(), formatdict(), or formatlist(). """ - return isinstance(obj, (type(None), bool, int, pycompat.long, float, bytes)) + return isinstance(obj, (type(None), bool, int, int, float, bytes)) class _nullconverter(object):