AlkantarClanX12
Current Path : /opt/alt/python27/lib64/python2.7/lib2to3/fixes/ |
Current File : //opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_operator.pyo |
� ^ bc @ s^ d Z d d l m Z d d l m Z m Z m Z m Z d � Z d e j f d � � YZ d S( s� Fixer for operator functions. operator.isCallable(obj) -> hasattr(obj, '__call__') operator.sequenceIncludes(obj) -> operator.contains(obj) operator.isSequenceType(obj) -> isinstance(obj, collections.Sequence) operator.isMappingType(obj) -> isinstance(obj, collections.Mapping) operator.isNumberType(obj) -> isinstance(obj, numbers.Number) operator.repeat(obj, n) -> operator.mul(obj, n) operator.irepeat(obj, n) -> operator.imul(obj, n) i����( t fixer_base( t Callt Namet Stringt touch_importc s � f d � } | S( Nc s � | _ | S( N( t invocation( t f( t s( s? /opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_operator.pyt dec s ( ( R R ( ( R s? /opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_operator.pyR s t FixOperatorc B s� e Z e Z d Z d Z d Z d e d e d e � Z d � Z e d � d � � Z e d � d � � Z e d � d � � Z e d � d � � Z e d � d � � Z e d � d � � Z e d � d � � Z d � Z d � Z d � Z RS( t pres� method=('isCallable'|'sequenceIncludes' |'isSequenceType'|'isMappingType'|'isNumberType' |'repeat'|'irepeat') s '(' obj=any ')'s� power< module='operator' trailer< '.' %(methods)s > trailer< %(obj)s > > | power< %(methods)s trailer< %(obj)s > > t methodst objc C s/ | j | | � } | d k r+ | | | � Sd S( N( t _check_methodt None( t selft nodet resultst method( ( s? /opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_operator.pyt transform) s s operator.contains(%s)c C s | j | | d � S( Nu contains( t _handle_rename( R R R ( ( s? /opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_operator.pyt _sequenceIncludes. s s hasattr(%s, '__call__')c C sG | d } | j � t d � t d � g } t t d � | d | j �S( NR u , u '__call__'u hasattrt prefix( t cloneR R R R ( R R R R t args( ( s? /opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_operator.pyt _isCallable2 s !s operator.mul(%s)c C s | j | | d � S( Nu mul( R ( R R R ( ( s? /opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_operator.pyt _repeat8 s s operator.imul(%s)c C s | j | | d � S( Nu imul( R ( R R R ( ( s? /opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_operator.pyt _irepeat<