__all__ = ['long']


if hasattr(__builtins__, 'long'):
    long = long
else:
    class long(int):
        pass

__all__ = ['long']


if 'long' in __builtins__:
    long = __builtins__['long']
else:
    class long(int):
        pass

Fix bug encoding long type in python 2.x
Fix bug encoding long type in python 2.x
