Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/lib64/python2..../lib2to3/fixes
File: fix_basestring.py
"""Fixer for basestring -> str."""
[0] Fix | Delete
# Author: Christian Heimes
[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 FixBasestring(fixer_base.BaseFix):
[7] Fix | Delete
BM_compatible = True
[8] Fix | Delete
[9] Fix | Delete
PATTERN = "'basestring'"
[10] Fix | Delete
[11] Fix | Delete
def transform(self, node, results):
[12] Fix | Delete
return Name(u"str", prefix=node.prefix)
[13] Fix | Delete
[14] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function