ó v®¸Qc@s dZddlmZddlmZddlmZidd6dd6d d 6d d 6d d6d d6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6d#d$6d%d&6d d'6d#d(6d)d*6ZgeD]Zd+e^qÖZ d,ej fd-„ƒYZ d.S(/sÆ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 i(ttoken(t fixer_base(tNametboolt BooleanTypet memoryviewt BufferTypettypet ClassTypetcomplext ComplexTypetdicttDictTypetDictionaryTypestype(Ellipsis)t EllipsisTypetfloatt FloatTypetinttIntTypetlisttListTypetLongTypetobjectt ObjectTypes type(None)tNoneTypestype(NotImplemented)tNotImplementedTypetslicet SliceTypetbytest StringTypetstrt StringTypesttuplet TupleTypetTypeTypet UnicodeTypetranget XRangeTypes)power< 'types' trailer< '.' name='%s' > >tFixTypescBs&eZeZdjeƒZd„ZRS(t|cCs9ttj|djƒƒ}|r5t|d|jƒSdS(Ntnametprefix(tunicodet _TYPE_MAPPINGtgettvalueRR)tNone(tselftnodetresultst new_value((s-/sys/lib/python2.7/lib2to3/fixes/fix_types.pyt transform:s(t__name__t __module__tTruet BM_compatibletjoint_patstPATTERNR3(((s-/sys/lib/python2.7/lib2to3/fixes/fix_types.pyR&6sN( t__doc__tpgen2RtRt fixer_utilRR+ttR9tBaseFixR&(((s-/sys/lib/python2.7/lib2to3/fixes/fix_types.pyts6