î j fã@s[dZddlmZddlmZmZmZmZmZGdd„dej ƒZ dS)z…Fixer for callable(). This converts callable(obj) into isinstance(obj, collections.Callable), adding a collections import if needed.é)Ú fixer_base)ÚCallÚNameÚStringÚAttrÚ touch_importc@s.eZdZdZdZdZdd„ZdS)Ú FixCallableTZprea power< 'callable' trailer< lpar='(' ( not(arglist | argument) any ','> ) rpar=')' > after=any* > cCss|d}tddd|ƒ|jƒtdƒg}|jttdƒtdƒƒƒttdƒ|d|jƒS)NÚfuncÚ collectionsÚnodez, ÚCallableÚ isinstanceÚprefix)rZclonerÚextendrrrr)Úselfr Zresultsr Úargs©rú?/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_callable.pyÚ transforms  "zFixCallable.transformN)Ú__name__Ú __module__Ú __qualname__Z BM_compatibleZorderZPATTERNrrrrrr s  rN) Ú__doc__Zlib2to3rZlib2to3.fixer_utilrrrrrZBaseFixrrrrrÚs(