ok
Direktori : /lib64/python2.7/site-packages/dbus/ |
Current File : //lib64/python2.7/site-packages/dbus/_expat_introspect_parser.pyc |
� oMTc @ sC d d l m Z d d l m Z d e f d � � YZ d � Z d S( i����( t ParserCreate( t IntrospectionParserExceptiont _Parserc B s2 e Z d Z d � Z d � Z d � Z d � Z RS( t mapt in_ifacet in_methodt sigc C s( i | _ d | _ d | _ d | _ d S( Nt ( R R R R ( t self( ( sC /usr/lib64/python2.7/site-packages/dbus/_expat_introspect_parser.pyt __init__ s c C sD t d d � } t | _ | j | _ | j | _ | j | � | j S( Ns UTF-8t ( R t Truet buffer_textt StartElementHandlert EndElementHandlert ParseR ( R t datat parser( ( sC /usr/lib64/python2.7/site-packages/dbus/_expat_introspect_parser.pyt parse% s c C s� | j s2 | j r� | d k r� | d | _ q� nl | j rX | d k rX | d | _ nF | j r� | d k r� | j d d � d k r� | j | d 7_ q� n d S( Nt interfacet namet methodt argt directiont int type( R R t getR ( R R t attributes( ( sC /usr/lib64/python2.7/site-packages/dbus/_expat_introspect_parser.pyR - s c C sz | j rv | j r+ | d k r+ d | _ qv | j rv | d k rv | j | j | j d | j <d | _ d | _ qv n d S( NR R R t .( R R R R ( R R ( ( sC /usr/lib64/python2.7/site-packages/dbus/_expat_introspect_parser.pyR 8 s ( s maps in_ifaces in_methods sig( t __name__t __module__t __slots__R R R R ( ( ( sC /usr/lib64/python2.7/site-packages/dbus/_expat_introspect_parser.pyR s c C sG y t � j | � SWn, t k rB } t d | j | f � � n Xd S( s� Return a dict mapping ``interface.method`` strings to the concatenation of all their 'in' parameters, and mapping ``interface.signal`` strings to the concatenation of all their parameters. Example output:: { 'com.example.SignalEmitter.OneString': 's', 'com.example.MethodImplementor.OneInt32Argument': 'i', } :Parameters: `data` : str The introspection XML. Must be an 8-bit string of UTF-8. s %s: %sN( R R t ExceptionR t __class__( R t e( ( sC /usr/lib64/python2.7/site-packages/dbus/_expat_introspect_parser.pyt process_introspection_dataA s N( t xml.parsers.expatR t dbus.exceptionsR t objectR R# ( ( ( sC /usr/lib64/python2.7/site-packages/dbus/_expat_introspect_parser.pyt <module> s $