Compatibility with Python 3
Created originally on Bitbucket by Jan Niklas Hasse
See https://www.mercurial-scm.org/wiki/Python3#Porting_Extensions_to_Python_3
Created originally on Bitbucket by Jan Niklas Hasse
See https://www.mercurial-scm.org/wiki/Python3#Porting_Extensions_to_Python_3