changeset 31529:61ff3852f6ed

pure: use int instead of long Similar to the recent 73aa13bc8dac (revlog: use int instead of long, 2017-03-19).
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 20 Mar 2017 21:40:28 -0700
parents 2b599f5468a4
children 160e7ad941e9
files mercurial/pure/parsers.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pure/parsers.py	Mon Mar 13 22:30:07 2017 -0700
+++ b/mercurial/pure/parsers.py	Mon Mar 20 21:40:28 2017 -0700
@@ -14,8 +14,6 @@
 from . import pycompat
 stringio = pycompat.stringio
 
-if pycompat.ispy3:
-    long = int
 
 _pack = struct.pack
 _unpack = struct.unpack
@@ -37,7 +35,7 @@
     return int(q & 0xFFFF)
 
 def offset_type(offset, type):
-    return long(long(offset) << 16 | type)
+    return int(int(offset) << 16 | type)
 
 class BaseIndexObject(object):
     def __len__(self):