MAINHACK

MAINHACK Shell

: /lib64/python2.7/lib2to3/fixes/ [ drwxr-xr-x ]
Uname: Linux ncr1.int3rnet.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
Software: LiteSpeed
PHP version: 8.1.34 [ PHP INFO ] PHP os: Linux
Server Ip: 103.171.45.137
Your Ip: 216.73.217.80
User: digitaln (1704) | Group: digitaln (1708)
Safe Mode: OFF
Disable Function:
NONE

name : fix_long.py
# Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.

"""Fixer that turns 'long' into 'int' everywhere.
"""

# Local imports
from lib2to3 import fixer_base
from lib2to3.fixer_util import is_probably_builtin


class FixLong(fixer_base.BaseFix):
    BM_compatible = True
    PATTERN = "'long'"

    def transform(self, node, results):
        if is_probably_builtin(node):
            node.value = u"int"
            node.changed()
© 2026 MAINHACK