revlog: replace PyInt_AS_LONG with a more portable helper function...
revlog: replace PyInt_AS_LONG with a more portable helper function
PyInt_AS_LONG disappears on Python, and our previous #define was
producing some problems on Python 3. Let's give up and make an inline
helper function that makes this more sane.
Differential Revision:
https://phab.mercurial-scm.org/D5235