ok

Mini Shell

Direktori : /lib64/python2.7/lib2to3/fixes/
Upload File :
Current File : //lib64/python2.7/lib2to3/fixes/fix_types.pyc

�
{fc@s	dZddlmZddlmZddlmZidd6dd6d	d
6dd6d
d6d
d6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6d#d$6d%d&6d	d'6d(d)6d*d+6ZgeD]Zd,e^q�Z	d-ej
fd.��YZd/S(0s�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(tNametbooltBooleanTypet
memoryviewt
BufferTypettypet	ClassTypetcomplextComplexTypetdicttDictTypetDictionaryTypestype(Ellipsis)tEllipsisTypetfloatt	FloatTypetinttIntTypetlisttListTypetLongTypetobjectt
ObjectTypes
type(None)tNoneTypestype(NotImplemented)tNotImplementedTypetslicet	SliceTypetbytest
StringTypes(str,)tStringTypesttuplet	TupleTypetTypeTypetstrtUnicodeTypetranget
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//usr/lib64/python2.7/lib2to3/fixes/fix_types.pyt	transform:s(t__name__t
__module__tTruet
BM_compatibletjoint_patstPATTERNR3(((s//usr/lib64/python2.7/lib2to3/fixes/fix_types.pyR&6sN(t__doc__tpgen2RtRt
fixer_utilRR+ttR9tBaseFixR&(((s//usr/lib64/python2.7/lib2to3/fixes/fix_types.pyt<module>s6


Zerion Mini Shell 1.0