ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ A[c@@sdZddlmZddlZddlmZddlmZmZe Z e Z e e ddZ dZd gZdS( sh This module provides a newsuper() function in Python 2 that mimics the behaviour of super() in Python 3. It is designed to be used as follows: from __future__ import division, absolute_import, print_function from future.builtins import super And then, for example: class VerboseList(list): def append(self, item): print('Adding an item') super().append(item) # new simpler super() function Importing this module on Python 3 has no effect. This is based on (i.e. almost identical to) Ryan Kelly's magicsuper module here: https://github.com/rfk/magicsuper.git Excerpts from Ryan's docstring: "Of course, you can still explicitly pass in the arguments if you want to do something strange. Sometimes you really do want that, e.g. to skip over some classes in the method resolution order. "How does it work? By inspecting the calling frame to determine the function object being executed and the object on which it's being called, and then walking the object's __mro__ chain to find out where that function was defined. Yuck, but it seems to work..." i(tabsolute_importN(t FunctionType(tPY3tPY26icC@s|tkrtj|}y|j|jjd}Wn#ttfk r[tdnXy |j }WnGt tfk ry|j j }Wqt k rtdqXnXx|D]}x|j j D]}yhxat|ts<t|tr|j}qy |j}Wqt k r8|j||}qXqWWnt tfk rZqnX|j|jkrPqqWqPqWtdn|tk rt||St|S(sLike builtin super(), but capable of magic. This acts just like the builtin super() function, but if called without any arguments it attempts to infer them at runtime. is'super() used in a function with no argss&super() used with a non-newstyle classssuper() called outside a method(t _SENTINELtsyst _getframetf_localstf_codet co_varnamest IndexErrortKeyErrort RuntimeErrort__mro__tAttributeErrort __class__t__dict__tvaluest isinstanceRtpropertytfgett__func__t__get__t TypeErrort func_codet_builtin_super(ttypt type_or_objt framedepthtftmrotmeth((sI/opt/alt/python27/lib/python2.7/site-packages/future/builtins/newsuper.pytnewsuper-sB         cO@s:tjd}|jj}ttdd|||S(NiRi(RRRtco_nametgetattrR (targstkwdsRtnm((sI/opt/alt/python27/lib/python2.7/site-packages/future/builtins/newsuper.pytsupermls R (t__doc__t __future__RRttypesRt future.utilsRRtsuperRtobjectRR R&t__all__(((sI/opt/alt/python27/lib/python2.7/site-packages/future/builtins/newsuper.pyt s  ?