Patchwork D5810: py3: use pycompat.long in hgext/convert/monotone.py

login
register
mail settings
Submitter phabricator
Date Feb. 3, 2019, 12:48 p.m.
Message ID <57ce22e94e51a73730db17bb54041251@localhost.localdomain>
Download mbox | patch
Permalink /patch/38349/
State Not Applicable
Headers show

Comments

phabricator - Feb. 3, 2019, 12:48 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGae79747a1920: py3: use pycompat.long in hgext/convert/monotone.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5810?vs=13714&id=13724

REVISION DETAIL
  https://phab.mercurial-scm.org/D5810

AFFECTED FILES
  hgext/convert/monotone.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

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 @@ 
                 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)