/usr/lib64/python3.9/site-packages/dbus/__pycache__
NameSizeModeActions
bus.cpython-39.opt-1.pyc135550644editdlrm
bus.cpython-39.pyc135550644editdlrm
connection.cpython-39.opt-1.pyc178140644editdlrm
connection.cpython-39.pyc178140644editdlrm
decorators.cpython-39.opt-1.pyc117150644editdlrm
decorators.cpython-39.pyc117150644editdlrm
exceptions.cpython-39.opt-1.pyc39200644editdlrm
exceptions.cpython-39.pyc39200644editdlrm
gi_service.cpython-39.opt-1.pyc19600644editdlrm
gi_service.cpython-39.pyc19600644editdlrm
glib.cpython-39.opt-1.pyc10180644editdlrm
glib.cpython-39.pyc10180644editdlrm
lowlevel.cpython-39.opt-1.pyc6790644editdlrm
lowlevel.cpython-39.pyc6790644editdlrm
proxies.cpython-39.opt-1.pyc177740644editdlrm
proxies.cpython-39.pyc177740644editdlrm
server.cpython-39.opt-1.pyc34600644editdlrm
server.cpython-39.pyc34600644editdlrm
service.cpython-39.opt-1.pyc221780644editdlrm
service.cpython-39.pyc221780644editdlrm
types.cpython-39.opt-1.pyc6780644editdlrm
types.cpython-39.pyc6780644editdlrm
_compat.cpython-39.opt-1.pyc2200644editdlrm
_compat.cpython-39.pyc2200644editdlrm
_dbus.cpython-39.opt-1.pyc73850644editdlrm
_dbus.cpython-39.pyc73850644editdlrm
_expat_introspect_parser.cpython-39.opt-1.pyc22100644editdlrm
_expat_introspect_parser.cpython-39.pyc22100644editdlrm
__init__.cpython-39.opt-1.pyc20090644editdlrm
__init__.cpython-39.pyc20090644editdlrm
Edit: /usr/lib64/python3.9/site-packages/dbus/__pycache__/proxies.cpython-39.pyc (17774B)
a ó z]õ`ã@sÚddlZzddlmZWney6ddlmZYn0ddlZddlmZddlm Z m Z m Z m Z dZ e d¡ZddlmZmZmZmZmZddlmZGd d „d ƒZGd d „d ƒZGd d„deƒZGdd„deƒZdS)éN)ÚRLock)Úprocess_introspection_data)Ú DBusExceptionÚIntrospectionParserExceptionÚMissingErrorHandlerExceptionÚMissingReplyHandlerExceptionZrestructuredtextz dbus.proxies)ÚBUS_DAEMON_IFACEÚBUS_DAEMON_NAMEÚBUS_DAEMON_PATHÚINTROSPECTABLE_IFACEÚ LOCAL_PATH)Úis_py2c@s(eZdZdZdd„Zdd„Zdd„ZdS) Ú_DeferredMethodzXA proxy method which will only get called once we have its introspection reply. cCs||_|j|_||_||_dS©N)Ú _proxy_methodÚ _method_nameÚ_appendÚ_block)ÚselfÚ proxy_methodÚappendÚblock©rú2/usr/lib64/python3.9/site-packages/dbus/proxies.pyÚ__init__8sz_DeferredMethod.__init__cOsDd|vs| dd¡r(| |j||¡dS| ¡|j|i|¤ŽSdS)NÚ reply_handlerÚ ignore_replyF)Úgetrrr©rÚargsÚkeywordsrrrÚ__call__?s ÿz_DeferredMethod.__call__cOs| |j||¡dSr)rrrrrrÚ call_asyncJsz_DeferredMethod.call_asyncN©Ú__name__Ú __module__Ú __qualname__Ú__doc__rr!r"rrrrr4s rc@s(eZdZdZdd„Zdd„Zdd„ZdS) Ú _ProxyMethodz°A proxy method. Typically a member of a ProxyObject. Calls to the method produce messages that travel over the Bus and are routed to a specific named Service. cCsX|tkrtdtƒ‚||_||_||_||_t |¡||_|durNt  |¡||_ dS)Nz1Methods may not be called on the reserved path %s) r rÚ_proxyÚ _connectionÚ_named_serviceÚ _object_pathÚ_dbus_bindingsZvalidate_member_namerZvalidate_interface_nameÚ_dbus_interface)rÚproxyZ connectionÚbus_nameÚ object_pathZ method_nameZifacerrrrUsÿ  z_ProxyMethod.__init__c Os| dd¡}| dd¡}| dd¡}| dd¡}|dus@|durl|durPtƒ‚n|dur`tƒ‚n |rltdƒ‚| d|j¡}|dur°|dur’|j}n|d|j}|jj |d¡}|s¼|duræ|j j |j |j ||j||||fi|¤Žn$|j j |j |j ||j||fi|¤ŽSdS) NrÚ error_handlerrFÚ signaturez6ignore_reply and reply_handler cannot be used togetherÚdbus_interfaceÚ.)ÚpoprrÚ TypeErrorr.rr)Ú_introspect_method_maprr*r"r+r,Z call_blocking) rrr rr2rr3r4Úkeyrrrr!isL      ùø ûúz_ProxyMethod.__call__c Os�| dd¡}| dd¡}| dd¡}| d|j¡}|durd|rN|d|j}n|j}|jj |d¡}|jj|j|j ||j||||fi|¤ŽdS)Nrr2r3r4r5) r6r.rr)r8rr*r"r+r,)rrr rr2r3r4r9rrrr"•s(    ùøz_ProxyMethod.call_asyncNr#rrrrr(Ns,r(c@s¼eZdZdZeZeZdZdZ dZ d%dd „Z e d d „ddd ƒZ e d d „dddƒZe dd „dddƒZd&dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd „Zd'd!d"„Zd#d$„ZeZdS)(Ú ProxyObjectz£A proxy to the remote Object. A ProxyObject is provided by the Bus. ProxyObjects have member functions, and can be called like normal Python objects. rééNTFc Ks:| dd¡}|durB|dur$tdƒ‚|}ddlm}|dtdd�| d d¡} | dur„|durftd ƒ‚| }ddlm}|d tdd�|ržtd d  | ¡¡ƒ‚|rª| ¡||_|durÂt   |¡||_ |_ t   |¡||_|sî| |¡|_ d|_g|_i|_tƒ|_|�r|jtk�r$|j|_n|j|_| ¡|_dS)aøInitialize the proxy object. :Parameters: `conn` : `dbus.connection.Connection` The bus or connection on which to find this object. The keyword argument `bus` is a deprecated alias for this. `bus_name` : str A bus name for the application owning the object, to be used as the destination for method calls and the sender for signal matches. The keyword argument ``named_service`` is a deprecated alias for this. `object_path` : str The object path at which the application exports the object `introspect` : bool If true (default), attempt to introspect the remote object to find out supported methods and their signatures `follow_name_owner_changes` : bool If true (default is false) and the `bus_name` is a well-known name, follow ownership changes for that name ÚbusNz%conn and bus cannot both be specifiedr)Úwarnz`Passing the bus parameter to ProxyObject by name is deprecated: please use positional parametersr<)Ú stacklevelÚ named_servicez3bus_name and named_service cannot both be specifiedzjPassing the named_service parameter to ProxyObject by name is deprecated: please use positional parametersz>ProxyObject.__init__ does not take these keyword arguments: %sz, )r6r7Úwarningsr>ÚDeprecationWarningÚjoinÚkeysZ_require_main_loopÚ_busr-Zvalidate_bus_namer+Ú_requested_bus_nameZvalidate_object_pathÚ__dbus_object_path__Zactivate_name_ownerÚ_pending_introspectÚ_pending_introspect_queuer8rÚ_introspect_lockr Ú INTROSPECT_STATE_DONT_INTROSPECTÚ_introspect_stateÚ'INTROSPECT_STATE_INTROSPECT_IN_PROGRESSÚ _Introspect) rZconnr0r1Z introspectZfollow_name_owner_changesÚkwargsr=r>r@rrrr»sP  þ  þ þ     zProxyObject.__init__cCs|jSr)r+©rrrrÚózProxyObject.aèThe bus name to which this proxy is bound. (Read-only, may change.) If the proxy was instantiated using a unique name, this property is that unique name. If the proxy was instantiated with a well-known name and with ``follow_name_owner_changes`` set false (the default), this property is the unique name of the connection that owned that well-known name when the proxy was instantiated, which might not actually own the requested well-known name any more. If the proxy was instantiated with a well-known name and with ``follow_name_owner_changes`` set true, this property is that well-known name. cCs|jSr)rFrPrrrrQ rRz[The bus name which was requested when this proxy was instantiated. cCs|jSr)rGrPrrrrQ&rRzThe object-path of this proxy.cKs"|jj|f|||j|jdœ|¤ŽS)ax Arrange for the given function to be called when the given signal is received. :Parameters: `signal_name` : str The name of the signal `handler_function` : callable A function to be called when the signal is emitted by the remote object. Its positional arguments will be the arguments of the signal; optionally, it may be given keyword arguments as described below. `dbus_interface` : str Optional interface with which to qualify the signal name. If None (the default) the handler will be called whenever a signal of the given member name is received, whatever its interface. :Keywords: `utf8_strings` : bool If True, the handler function will receive any string arguments as dbus.UTF8String objects (a subclass of str guaranteed to be UTF-8). If False (default) it will receive any string arguments as dbus.String objects (a subclass of unicode). `byte_arrays` : bool If True, the handler function will receive any byte-array arguments as dbus.ByteArray objects (a subclass of str). If False (default) it will receive any byte-array arguments as a dbus.Array of dbus.Byte (subclasses of: a list of ints). `sender_keyword` : str If not None (the default), the handler function will receive the unique name of the sending endpoint as a keyword argument with this name `destination_keyword` : str If not None (the default), the handler function will receive the bus name of the destination (or None if the signal is a broadcast, as is usual) as a keyword argument with this name. `interface_keyword` : str If not None (the default), the handler function will receive the signal interface as a keyword argument with this name. `member_keyword` : str If not None (the default), the handler function will receive the signal name as a keyword argument with this name. `path_keyword` : str If not None (the default), the handler function will receive the object-path of the sending object as a keyword argument with this name `message_keyword` : str If not None (the default), the handler function will receive the `dbus.lowlevel.SignalMessage` as a keyword argument with this name. `arg...` : unicode or UTF-8 str If there are additional keyword parameters of the form ``arg``\ *n*, match only signals where the *n*\ th argument is the value given for that keyword parameter. As of this time only string arguments can be matched (in particular, object paths and signatures can't). )Ú signal_namer4r0Úpath)rEZadd_signal_receiverr+rG©rrSZhandler_functionr4r rrrÚconnect_to_signal2s< üûÿzProxyObject.connect_to_signalc Cs>i}trd|d<|jj|j|jtddd|j|jfddi|¤ŽS)NTZ utf8_stringsZ IntrospectÚrZrequire_main_loopF)r rEr"r+rGr Ú_introspect_reply_handlerÚ_introspect_error_handler)rrOrrrrNus üûûzProxyObject._IntrospectcCs*|jD]\}}}||i|¤Žqg|_dSr)rI)rrrr rrrÚ_introspect_execute_queue€sz%ProxyObject._introspect_execute_queuec CsŒ|j ¡zpzt|ƒ|_Wn<tyV}z$| |¡WYd}~W|j ¡dSd}~00|j|_d|_ |  ¡W|j ¡n |j ¡0dSr) rJÚacquirerr8rrYÚreleaseÚ INTROSPECT_STATE_INTROSPECT_DONErLrHrZ)rÚdataÚerrrrXˆs    ú z%ProxyObject._introspect_reply_handlercCsrt ¡t d|j|j|jj|jj|¡|j   ¡z.t  d¡|j |_ d|_| ¡W|j  ¡n |j  ¡0dS)Nz$Introspect error on %s:%s: %s.%s: %sz'Executing introspect queue due to error)ÚloggingZ basicConfigÚ_loggerÚerrorr+rGÚ __class__r%r$rJr[ÚdebugrKrLrHrZr\)rrbrrrrY—s ý   z%ProxyObject._introspect_error_handlercCs>|j ¡z"|jdur |j ¡W|j ¡n |j ¡0dSr)rJr[rHrr\rPrrrÚ_introspect_block¦s    zProxyObject._introspect_blockcCsX|j ¡z<|j|jkr,|j |||f¡n||i|¤ŽW|j ¡n |j ¡0dSr)rJr[rLrMrIrr\)rÚcallbackrrOrrrÚ_introspect_add_to_queue°s   z$ProxyObject._introspect_add_to_queuecCs,| d¡r| d¡rt|ƒ‚n | |¡SdS©NÚ__)Ú startswithÚendswithÚAttributeErrorÚget_dbus_method©rÚmemberrrrÚ __getattr__¼s zProxyObject.__getattr__cCs<| ||j|j|j||¡}|j|jkr8| ||j|j¡}|S)a,Return a proxy method representing the given D-Bus method. The returned proxy method can be called in the usual way. For instance, :: proxy.get_dbus_method("Foo", dbus_interface='com.example.Bar')(123) is equivalent to:: proxy.Foo(123, dbus_interface='com.example.Bar') or even:: getattr(proxy, "Foo")(123, dbus_interface='com.example.Bar') However, using `get_dbus_method` is the only way to call D-Bus methods with certain awkward names - if the author of a service implements a method called ``connect_to_signal`` or even ``__getattr__``, you'll need to use `get_dbus_method` to call them. For services which follow the D-Bus convention of CamelCaseMethodNames this won't be a problem. ) ÚProxyMethodClassrEr+rGrLrMÚDeferredMethodClassrgre)rror4ÚretrrrrmÂs ý  ÿzProxyObject.get_dbus_methodcCsd|j|j|jt|ƒfS)Nz&)rEr+rGÚidrPrrrÚ__repr__èsÿzProxyObject.__repr__)NNNTF)N)N)r$r%r&r'r(rqrrrrKrMr]rÚpropertyr0Úrequested_bus_namer1rVrNrZrXrYrergrprmruÚ__str__rrrrr:®s>ÿ S ÿþþ C    &r:c@sžeZdZdZdd„Zedd„dddƒZeZedd„ddd ƒZed d„ddd ƒZ ed d„ddd ƒZ edd„dddƒZ ddd„Z dd„Z ddd„Zdd„ZeZdS)Ú Interfacez An interface into a remote object. An Interface can be used to wrap ProxyObjects so that calls can be routed to their correct D-Bus interface. cCs$t|tƒr|j|_n||_||_dS)a:Construct a proxy for the given interface on the given object. :Parameters: `object` : `dbus.proxies.ProxyObject` or `dbus.Interface` The remote object or another of its interfaces `dbus_interface` : str An interface the `object` implements N)Ú isinstanceryÚ proxy_objectÚ_objr.)rÚobjectr4rrrrös  zInterface.__init__cCs|jjSr)r|r1rPrrrrQrRzInterface.Nz.The D-Bus object path of the underlying objectcCs|jjSr)r|r0rPrrrrQrRz:The bus name to which the underlying proxy object is boundcCs|jjSr)r|rwrPrrrrQ rRzGThe bus name which was requested when the underlying object was createdcCs|jSr)r|rPrrrrQrRzThe underlying proxy objectcCs|jSr)r.rPrrrrQrRzThe D-Bus interface representedcKs"|s |j}|jj|||fi|¤ŽS)aaArrange for a function to be called when the given signal is emitted. The parameters and keyword arguments are the same as for `dbus.proxies.ProxyObject.connect_to_signal`, except that if `dbus_interface` is None (the default), the D-Bus interface that was passed to the `Interface` constructor is used. )r.r|rVrUrrrrVs  ÿÿzInterface.connect_to_signalcCs2| d¡r| d¡rt|ƒ‚n|j ||j¡SdSrh)rjrkrlr|rmr.rnrrrrp$s zInterface.__getattr__cCs|dur|j}|j ||¡S)a&Return a proxy method representing the given D-Bus method. This is the same as `dbus.proxies.ProxyObject.get_dbus_method` except that if `dbus_interface` is None (the default), the D-Bus interface that was passed to the `Interface` constructor is used. N)r.r|rm)rror4rrrrm*szInterface.get_dbus_methodcCsd|j|jt|ƒfS)Nz%)r|r.rtrPrrrru6sÿzInterface.__repr__)N)N)r$r%r&r'rrvr1rGr0rwr{r4rVrprmrurxrrrrryîs2 ÿ ÿþ ÿ ÿÿ  ry)r`Ú threadingrÚ ImportErrorZdummy_threadingr-Zdbus._expat_introspect_parserrZdbus.exceptionsrrrrZ __docformat__Z getLoggerrarr r r r Z dbus._compatr rr(r}r:ryrrrrÚs"    `B