py3: use pycompat.long in hgext/convert/monotone.py
Differential Revision: https://phab.mercurial-scm.org/D5810
--- 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)