tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Y\¬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_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/fixes/fix_types.pyt    transform:s(t__name__t
__module__tTruet BM_compatibletjoint_patstPATTERNR3(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/fixes/fix_types.pyR&6sN( t__doc__tpgen2RtRt
fixer_utilRR+ttR9tBaseFixR&(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/fixes/fix_types.pyt<module>s6