ó §Zc@s>ddlZddlZddlZddlZddlmZddlmZddlm Z ddl m Z m Z ddlm Z e eeƒZiZd„Zdejfd „ƒYZd efd „ƒYZd „Zd efd„ƒYZd„Zd„Zd„Zeƒiiedd„Zdddd„ZdS(iÿÿÿÿN(t get_loader(tPyGIDeprecationWarning(t CallableInfo(t TYPE_NONEt TYPE_INVALID(t extend_pathcs‡fd†}|S(Ncsˆj|_ˆj|_|S(N(t__name__t __module__(twrapper(twrapped(s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pytassigns  ((R R ((R s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pytwrapsstOverridesProxyModulecBs2eZdZd„Zd„Zd„Zd„ZRS(s7Wraps a introspection module and contains all overridescCs&tt|ƒj|jƒ||_dS(N(tsuperR t__init__Rt_introspection_module(tselftintrospection_module((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyR!s cCst|j|ƒS(N(tgetattrR(Rtname((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyt __getattr__&scCsKtt|jƒƒ}|j|jjƒƒ|jt|jƒƒt|ƒS(N(tsettdirt __class__tupdatet__dict__tkeysRtsorted(Rtresult((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyt__dir__)scCsdt|ƒj|jfS(Ns<%s %r>(ttypeRR(R((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyt__repr__/s(RRt__doc__RRRR(((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyR s    t_DeprecatedAttributecBs2eZdZd„Zd„Zd„Zd„ZRS(sÉA deprecation descriptor for OverridesProxyModule subclasses. Emits a PyGIDeprecationWarning on every access and tries to act as a normal instance attribute (can be replaced and deleted). cCs2||_||_td|||fƒ|_dS(Ns#%s.%s is deprecated; use %s instead(t_attrt_valueRt_warning(Rt namespacetattrtvaluet replacement((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyR:s   cCs;|dkrt|jƒ‚ntj|jddƒ|jS(Nt stackleveli(tNonetAttributeErrorR"twarningstwarnR$R#(Rtinstancetowner((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyt__get__As cCs0|j}tt|ƒ|ƒt|||ƒdS(N(R"tdelattrRtsetattr(RR.R'R&((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyt__set__Gs cCstt|ƒ|jƒdS(N(R1RR"(RR.((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyt __delete__Ms(RRR RR0R3R4(((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyR!3s    cCs2|jjddƒd}d|}|tjk}tjj|ƒ}t|dtfiƒ}||ƒ}|tj|RtpytypeR9R:R7R2(ttype_tinfotg_typeR%RT((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pytoverride¶s(     cs"tˆƒ‡‡fd†ƒ}|S(s7Decorator for marking methods and classes as deprecatedcs0tjdˆjˆftddƒˆ||ŽS(Ns %s is deprecated; use %s insteadR)i(R,R-RR(targstkwargs(tfnR((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyR Ûs (R (ReR(R ((ReR(s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyt deprecatedÙscCs#tj|gƒj||fƒdS(s:Marks a module level attribute as deprecated. Accessing it will emit a PyGIDeprecationWarning warning. e.g. for ``deprecated_attr("GObject", "STATUS_FOO", "GLib.Status.FOO")`` accessing GObject.STATUS_FOO will emit: "GObject.STATUS_FOO is deprecated; use GLib.Status.FOO instead" :param str namespace: The namespace of the override this is called in. :param str namespace: The attribute name (which gets added to __all__). :param str replacement: The replacement text which will be included in the warning. N(RCt setdefaulttappend(R%R&R(((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyRPãsics%‡‡‡‡‡‡‡fd†}|S(sWrapper for deprecating GObject based __init__ methods which specify defaults already available or non-standard defaults. :param callable super_init_func: Initializer to wrap. :param list arg_names: Ordered argument name list. :param list ignore: List of argument names to ignore when calling the wrapped function. This is useful for function which take a non-standard keyword that is munged elsewhere. :param dict deprecated_aliases: Dictionary mapping a keyword alias to the actual g_object_newv keyword. :param dict deprecated_defaults: Dictionary of non-standard defaults that will be used when the keyword is not explicitly passed. :param Exception category: Exception category of the error. :param int stacklevel: Stack level for the deprecation passed on to warnings.warn :returns: Wrapped version of ``super_init_func`` which gives a deprecation warning when non-keyword args or aliases are used. :rtype: callable c sÐ|rKtjddjˆt|ƒ ƒˆdˆƒttˆ|ƒƒ}ni}|j|ƒg}xIˆjƒD];\}}||krq|j|ƒ||<|j |ƒqqqqW|rtjddj‡fd†t |ƒDƒƒdjt |ƒƒfˆdˆƒng}xDˆjƒD]6\}}||krˆ|||<|j |ƒqqW|r–tjddj‡fd†t |ƒDƒƒˆdˆƒnx*ˆD]"}||kr|j|ƒqqWˆ||S(s†Initializer for a GObject based classes with support for property sets through the use of explicit keyword arguments. sÒUsing positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "%s" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecationss, R)s…The keyword(s) "%s" have been deprecated in favor of "%s" respectively. See: https://wiki.gnome.org/PyGObject/InitializerDeprecationsc3s|]}ˆ|VqdS(N((t.0tk(tdeprecated_aliases(s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pys /ssInitializer is relying on deprecated non-standard defaults. Please update to explicitly use: %s See: https://wiki.gnome.org/PyGObject/InitializerDeprecationsc3s#|]}d|ˆ|fVqdS(s%s=%sN((RiRj(tdeprecated_defaults(s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pys >s( R,R-tjointlentdicttzipRtitemsRDRhR( RRcRdt new_kwargst aliases_usedtkeytaliast defaults_usedR'(t arg_namestcategoryRkRltignoreR)tsuper_init_func(s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pytnew_inits<     "  #  ((RzRwRyRkRlRxR)R{((RwRxRkRlRyR)Rzs;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pytdeprecated_init÷s!3cs(tˆƒ‡‡‡‡fd†ƒ}|S(sTranslate method's return value for stripping off success flag. There are a lot of methods which return a "success" boolean and have several out arguments. Translate such a method to return the out arguments on success and None on failure. csaˆ||Ž}|dr>t|ƒdkr3|dS|dSnˆrYˆˆpPdƒ‚nˆSdS(Niiis call failed(Rn(RcRdtret(texc_strtexc_typetfail_rettmethod(s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyR Rs  (R (RRR~R€R ((R~RR€Rs;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pytstrip_boolean_resultKs$ (RYR,R?R:tpkgutilRtgiRtgi._giRt gi._constantsRRRt__path__RRCR t ModuleTypeR tobjectR!RQRRRbRfRPttupleR|R*R‚(((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyts.      V #  Q