Zc@s>ddlZddlZddlZddlZddlmZddlmZddlm Z ddl m Z m Z ddlm Z e eeZiZdZdejfd YZd efd YZd Zd efdYZdZdZdZeiieddZddddZdS(iN(t get_loader(tPyGIDeprecationWarning(t CallableInfo(t TYPE_NONEt TYPE_INVALID(t extend_pathcsfd}|S(Ncsj|_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__.pytwrapsstOverridesProxyModulecBs2eZdZdZdZdZdZRS(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|jt|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_DeprecatedAttributecBs2eZdZdZdZdZdZRS(sA 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|jntj|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||jdS(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|jjddd}d|}|tjk}tjj|}t|dtfi}||}|tj|RtpytypeR9R:R7R2(ttype_tinfotg_typeR%RT((s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pytoverrides(     cs"tfd}|S(s7Decorator for marking methods and classes as deprecatedcs0tjdjftdd||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 deprecatedscCs#tj|gj||fdS(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__.pyRPsics%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|rKtjddjt| dtt|}ni}|j|g}xIjD];\}}||krq|j|||<|j |qqqqW|rtjddjfdt |Ddjt |fdng}xDjD]6\}}||kr|||<|j |qqW|rtjddjfdt |Ddnx*D]"}||kr|j|qqW||S(sInitializer for a GObject based classes with support for property sets through the use of explicit keyword arguments. sUsing 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)sThe 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_inits!3cs(tfd}|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|dSnrYpPdnSdS(Niiis call failed(Rn(RcRdtret(texc_strtexc_typetfail_rettmethod(s;/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyR Rs  (R (RRR~RR ((R~RRRs;/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