comparison 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
comparison
equal deleted inserted replaced
48931:6f10a2d6adf9 48932:176f1a0d15dc
139 write() and data() functions 139 write() and data() functions
140 140
141 Returns False if the object is unsupported or must be pre-processed by 141 Returns False if the object is unsupported or must be pre-processed by
142 formatdate(), formatdict(), or formatlist(). 142 formatdate(), formatdict(), or formatlist().
143 """ 143 """
144 return isinstance(obj, (type(None), bool, int, pycompat.long, float, bytes)) 144 return isinstance(obj, (type(None), bool, int, int, float, bytes))
145 145
146 146
147 class _nullconverter(object): 147 class _nullconverter(object):
148 '''convert non-primitive data types to be processed by formatter''' 148 '''convert non-primitive data types to be processed by formatter'''
149 149