(root)/
Python-3.12.0/
Lib/
lib2to3/
fixes/
fix_long.py
       1  # Copyright 2006 Google, Inc. All Rights Reserved.
       2  # Licensed to PSF under a Contributor Agreement.
       3  
       4  """Fixer that turns 'long' into 'int' everywhere.
       5  """
       6  
       7  # Local imports
       8  from lib2to3 import fixer_base
       9  from lib2to3.fixer_util import is_probably_builtin
      10  
      11  
      12  class ESC[4;38;5;81mFixLong(ESC[4;38;5;149mfixer_baseESC[4;38;5;149m.ESC[4;38;5;149mBaseFix):
      13      BM_compatible = True
      14      PATTERN = "'long'"
      15  
      16      def transform(self, node, results):
      17          if is_probably_builtin(node):
      18              node.value = "int"
      19              node.changed()