# HG changeset patch # User Pulkit Goyal # Date 2019-02-03 11:35:47 # Node ID f12bd105d351b39de8a86cba6396a59d3f1a04c9 # Parent 880ce3543bd55532eed6f095ee4958f9796207af py3: use pycompat.long in hgext/convert/monotone.py Differential Revision: https://phab.mercurial-scm.org/D5810 diff --git a/hgext/convert/monotone.py b/hgext/convert/monotone.py --- a/hgext/convert/monotone.py +++ b/hgext/convert/monotone.py @@ -138,7 +138,7 @@ class monotone_source(common.converter_s 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)