python (3.11.7)

(root)/
lib/
python3.11/
lib2to3/
tests/
data/
fixers/
myfixes/
fix_parrot.py
       1  from lib2to3.fixer_base import BaseFix
       2  from lib2to3.fixer_util import Name
       3  
       4  class ESC[4;38;5;81mFixParrot(ESC[4;38;5;149mBaseFix):
       5      """
       6      Change functions named 'parrot' to 'cheese'.
       7      """
       8  
       9      PATTERN = """funcdef < 'def' name='parrot' any* >"""
      10  
      11      def transform(self, node, results):
      12          name = results["name"]
      13          name.replace(Name("cheese", name.prefix))