Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/lib64/python2..../lib2to3/fixes
File: fix_raw_input.py
"""Fixer that changes raw_input(...) into input(...)."""
[0] Fix | Delete
# Author: Andre Roberge
[1] Fix | Delete
[2] Fix | Delete
# Local imports
[3] Fix | Delete
from .. import fixer_base
[4] Fix | Delete
from ..fixer_util import Name
[5] Fix | Delete
[6] Fix | Delete
class FixRawInput(fixer_base.BaseFix):
[7] Fix | Delete
[8] Fix | Delete
BM_compatible = True
[9] Fix | Delete
PATTERN = """
[10] Fix | Delete
power< name='raw_input' trailer< '(' [any] ')' > any* >
[11] Fix | Delete
"""
[12] Fix | Delete
[13] Fix | Delete
def transform(self, node, results):
[14] Fix | Delete
name = results["name"]
[15] Fix | Delete
name.replace(Name(u"input", prefix=name.prefix))
[16] Fix | Delete
[17] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function