changeset 41539:f3d3e09a29d1

py3: use pycompat.long in hgext/convert/monotone.py Differential Revision: https://phab.mercurial-scm.org/D5810
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sun, 03 Feb 2019 17:05:47 +0530
parents 78d2583dd7cb
children 1be7a9b994a2
files hgext/convert/monotone.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)