Hacked By AnonymousFox
��Yf" � @ sr d Z d d l Z d d l m Z d d l m Z d d l m Z Gd d � d e � Z Gd d
� d
e � Z
d S)z2Base class for fixers (optional, but recommended).� N� )�PatternCompiler)�pygram)�does_tree_importc @ s e Z d Z d Z d Z d Z d Z d Z d Z e j
d � Z e � Z
d Z d Z d Z d Z d Z d Z e j Z d d � Z d d
� Z d d � Z d
d � Z d d � Z d d d � Z d d � Z d d d � Z d d � Z d d � Z d d � Z! d S)�BaseFixa Optional base class for fixers.
The subclass name must be FixFooBar where FooBar is the result of
removing underscores and capitalizing the words of the fix name.
For example, the class name for a fixer named 'has_key' should be
FixHasKey.
Nr ZpostF� c C s | | _ | | _ | j � d S)a Initializer. Subclass may override.
Args:
options: a dict containing the options passed to RefactoringTool
that could be used to customize the fixer through the command line.
log: a list to append warnings and other messages to.
N)�options�log�compile_pattern)�selfr r � r �7/opt/alt/python35/lib64/python3.5/lib2to3/fixer_base.py�__init__/ s zBaseFix.__init__c C s@ | j d k r<