???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................U
    e5d                     @   sp   d Z ddlmZ ddlmZ ddddddd	d
ddddddddddddddZdd eD ZG dd dejZdS )a  Fixer for removing uses of the types module.

These work for only the known names in the types module.  The forms above
can include types. or not.  ie, It is assumed the module is imported either as:

    import types
    from types import ... # either * or specific types

The import statements are not modified.

There should be another fixer that handles at least the following constants:

   type([]) -> list
   type(()) -> tuple
   type('') -> str

   )
fixer_base)Namebool
memoryviewtypecomplexdictztype(Ellipsis)floatintlistobjectz
type(None)ztype(NotImplemented)slicebytesz(str,)tuplestrrange)ZBooleanTypeZ
BufferTypeZ	ClassTypeZComplexTypeZDictTypeZDictionaryTypeZEllipsisTypeZ	FloatTypeZIntTypeZListTypeZLongTypeZ
ObjectTypeZNoneTypeZNotImplementedTypeZ	SliceTypeZ
StringTypeZStringTypesZ	TupleTypeZTypeTypeZUnicodeTypeZ
XRangeTypec                 C   s   g | ]}d | qS )z)power< 'types' trailer< '.' name='%s' > > ).0tr   r   //usr/lib64/python3.8/lib2to3/fixes/fix_types.py
<listcomp>3   s     r   c                   @   s"   e Zd ZdZdeZdd ZdS )FixTypesT|c                 C   s&   t |d j}|r"t||jdS d S )Nname)prefix)_TYPE_MAPPINGgetvaluer   r   )selfZnodeZresultsZ	new_valuer   r   r   	transform9   s    zFixTypes.transformN)__name__
__module____qualname__ZBM_compatiblejoin_patsZPATTERNr   r   r   r   r   r   5   s   
r   N)	__doc__ r   Z
fixer_utilr   r   r$   ZBaseFixr   r   r   r   r   <module>   s4   