Mercurial > hg-stable
diff hgext/convert/monotone.py @ 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 | 210a999bd668 |
children | fc09aafd3c36 |
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)