Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../lib64/python3..../lib2to3/fixes
File: fix_standarderror.py
# Copyright 2007 Google, Inc. All Rights Reserved.
[0] Fix | Delete
# Licensed to PSF under a Contributor Agreement.
[1] Fix | Delete
[2] Fix | Delete
"""Fixer for StandardError -> Exception."""
[3] Fix | Delete
[4] Fix | Delete
# Local imports
[5] Fix | Delete
from .. import fixer_base
[6] Fix | Delete
from ..fixer_util import Name
[7] Fix | Delete
[8] Fix | Delete
[9] Fix | Delete
class FixStandarderror(fixer_base.BaseFix):
[10] Fix | Delete
BM_compatible = True
[11] Fix | Delete
PATTERN = """
[12] Fix | Delete
'StandardError'
[13] Fix | Delete
"""
[14] Fix | Delete
[15] Fix | Delete
def transform(self, node, results):
[16] Fix | Delete
return Name("Exception", prefix=node.prefix)
[17] Fix | Delete
[18] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function