Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/lib64/python2..../lib2to3/fixes
File: fix_long.py
# Copyright 2006 Google, Inc. All Rights Reserved.
[0] Fix | Delete
# Licensed to PSF under a Contributor Agreement.
[1] Fix | Delete
[2] Fix | Delete
"""Fixer that turns 'long' into 'int' everywhere.
[3] Fix | Delete
"""
[4] Fix | Delete
[5] Fix | Delete
# Local imports
[6] Fix | Delete
from lib2to3 import fixer_base
[7] Fix | Delete
from lib2to3.fixer_util import is_probably_builtin
[8] Fix | Delete
[9] Fix | Delete
[10] Fix | Delete
class FixLong(fixer_base.BaseFix):
[11] Fix | Delete
BM_compatible = True
[12] Fix | Delete
PATTERN = "'long'"
[13] Fix | Delete
[14] Fix | Delete
def transform(self, node, results):
[15] Fix | Delete
if is_probably_builtin(node):
[16] Fix | Delete
node.value = u"int"
[17] Fix | Delete
node.changed()
[18] Fix | Delete
[19] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function