diff -r 6f10a2d6adf9 -r 176f1a0d15dc mercurial/formatter.py --- 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):