py3: use pycompat.long in hgext/convert/monotone.py
authorPulkit Goyal <pulkit@yandex-team.ru>
Sun, 03 Feb 2019 17:05:47 +0530
changeset 41525 f3d3e09a29d1
parent 41524 78d2583dd7cb
child 41526 1be7a9b994a2
py3: use pycompat.long in hgext/convert/monotone.py Differential Revision: https://phab.mercurial-scm.org/D5810
hgext/convert/monotone.py
--- a/hgext/convert/monotone.py	Sun Feb 03 16:59:46 2019 +0530
+++ b/hgext/convert/monotone.py	Sun Feb 03 17:05:47 2019 +0530
@@ -138,7 +138,7 @@
                 raise error.Abort(_('bad mtn packet - no end of packet size'))
             lengthstr += read
         try:
-            length = long(lengthstr[:-1])
+            length = pycompat.long(lengthstr[:-1])
         except TypeError:
             raise error.Abort(_('bad mtn packet - bad packet size %s')
                 % lengthstr)