Current Path : /usr/lib/python2.7/dist-packages/gi/overrides/ |
Current File : //usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyc |
,Oc @ s d d l m Z d d l m Z m Z e d j Z g Z d e f d YZ d e j f d YZ e d Z d Z e e d e e e d e e j d d S( i ( t modules( t variant_new_tuplet variant_type_from_stringt GLibt _VariantCreatorc B s e Z i e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6e j j d 6Z d Z d Z d Z d Z RS( t bt yt nt qt it ut xt tt ht dt st ot gt vc C s | j j | d } | rv | d k rb | s= t d n | | d } | | d | d f Sd | d d f Sn | d d k r | j | | S| j d r | j | | S| d d k r | j | | St d | d S( s@ Create a GVariant object from given format and argument list. This method recursively calls itself for complex structures (arrays, dictionaries, boxed). Return a tuple (variant, rest_format, rest_args) with the generated GVariant, the remainder of the format string, and the remainder of the arguments. If args is None, then this won't actually consume any arguments, and just parse the format string and generate empty GVariant structures. This is required for creating empty dictionaries or arrays. i s/ not enough arguments for GVariant format stringi t (s a{t as cannot handle GVariant type N( t _LEAF_CONSTRUCTORSt gett Nonet TypeErrort _create_tuplet startswitht _create_dictt _create_arrayt NotImplementedError( t selft formatt argst constructorR ( ( s5 /usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt _create/ s c C s | d } t j j t d } | d k r | sQ t | d t d k r` t d f n xl t t | d D]T } | j d r t d f n | j | | d | \ } } } | j | qw W| d } n | j | d | f S( s>