##// END OF EJS Templates
py3: leverage pycompat.long
Yuya Nishihara -
r43641:91c746a7 stable
parent child Browse files
Show More
@@ -31,9 +31,6 b' from .utils import ('
31 31 urlerr = util.urlerr
32 32 urlreq = util.urlreq
33 33
34 if pycompat.ispy3:
35 long = int
36
37 34 # filters are callables like:
38 35 # fn(obj)
39 36 # with:
@@ -329,7 +326,7 b' def json(obj, paranoid=True):'
329 326 return b'false'
330 327 elif obj is True:
331 328 return b'true'
332 elif isinstance(obj, (int, long, float)):
329 elif isinstance(obj, (int, pycompat.long, float)):
333 330 return pycompat.bytestr(obj)
334 331 elif isinstance(obj, bytes):
335 332 return b'"%s"' % encoding.jsonescape(obj, paranoid=paranoid)
General Comments 0
You need to be logged in to leave comments. Login now