ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ _gc @sdZddlZddlZddlmZmZmZmZmZejdkrge Z dZ n e Z e Z ddl Z ejdZdd d d d d dddg Zd ejfdYZdejfdYZdejfdYZeZdS(s,GOption command line parser Extends optparse to use the GOptionGroup, GOptionEntry and GOptionContext objects. So it is possible to use the gtk, gnome_program and gstreamer command line groups and contexts. Use this interface instead of the raw wrappers of GOptionContext and GOptionGroup in glib. iN(t OptParseErrort OptionErrortOptionValueErrortBadOptionErrortOptionConflictErroriicCs |jS(N(tencode(ts((s1/usr/lib64/python2.7/site-packages/glib/option.pyt'ts glib._glibRRRRRtOptiont OptionGroupt OptionParsert make_optioncBs_eZdZejjd ZejjdddgZdejZ dZ dZ dZ RS( sRepresents a command line option To use the extended possibilities of the GOption API Option (and make_option) are extended with new types and attributes. Types: filename The supplied arguments are read as filename, GOption parses this type in with the GLib filename encoding. Attributes: optional_arg This does not need a arguement, but it can be supplied. hidden The help list does not show this option in_main This option apears in the main group, this should only be used for backwards compatibility. Use Option.REMAINING as option name to get all positional arguments. NOTE: Every argument to an option is passed as utf-8 coded string, the only exception are options which use the 'filename' type, its arguments are passed as strings in the GLib filename encoding. For further help, see optparse.Option. tfilenamethiddentin_maint optional_args--cOstjj||||js.tdnt|jt|jkr[tdn|js}td|jdndS(Ns!%s at least one long option name.s;%s at least more long option names than short option names.s%s needs a help message.i(toptparseR t__init__t _long_optst ValueErrortlent _short_optsthelp(tselftargstkwargs((s1/usr/lib64/python2.7/site-packages/glib/option.pyR_s   cCsi|j|kr%|jj|jntjj||t|jt|jkretdndS(NsCgoption.Option needs more long option names than short option names( t REMAININGRtappendRR t_set_opt_stringRRR(Rtopts((s1/usr/lib64/python2.7/site-packages/glib/option.pyRls ccs#d}|jr|tjO}n|jr8|tjO}n|jr`|jrm|tjO}qmn |tjO}|j dkr|tj O}nxKt |j |j D]4\}}|dt|d||j|jfVqWxB|j t|j D]*}|dtd||j|jfVqWdS(NiR iis(Rt_glibtOPTION_FLAG_HIDDENRtOPTION_FLAG_IN_MAINt takes_valueRtOPTION_FLAG_OPTIONAL_ARGtOPTION_FLAG_NO_ARGttypetOPTION_FLAG_FILENAMEtzipRRt_bytesRtmetavarR(Rtflagst long_namet short_name((s1/usr/lib64/python2.7/site-packages/glib/option.pyt_to_goptionentriests     ",(R ( t__name__t __module__t__doc__RR tTYPEStATTRSRtOPTION_REMAININGRRRR-(((s1/usr/lib64/python2.7/site-packages/glib/option.pyR ;s     cBsJeZdZdddddZdZdZddZdZRS(sA group of command line options. Arguements: name: The groups name, used to create the --help-{name} option description: Shown as title of the groups help view help_description: Shown as help to the --help-{name} option option_list: The options used in this group, must be option.Option() defaults: A dicitionary of default values translation_domain: Sets the translation domain for gettext(). NOTE: This OptionGroup does not exactly map the optparse.OptionGroup interface. There is no parser object to supply, but it is possible to set default values and option_lists. Also the default values and values are not shared with the OptionParser. To pass a OptionGroup into a function which expects a GOptionGroup (e.g. gnome_program_init() ). OptionGroup.get_option_group() can be used. For further help, see optparse.OptionGroup. RcCstjj|td|||_d|_||_|rF||_nd|_ ||_ |rx|D]}|j |qeWndS(Nterror( RtOptionContainerRR tnametNonetparserthelp_descriptiontdefaultstvaluesttranslation_domaint add_option(RR6t descriptionR9t option_listR:R<toption((s1/usr/lib64/python2.7/site-packages/glib/option.pyRs       cCsg|_|jdS(N(R?t_create_option_mappings(R((s1/usr/lib64/python2.7/site-packages/glib/option.pyt_create_option_lists csfd}tjjjj|}jrO|jjng}x$jD]}|j|j q_W|j ||S(Ncs|jdrj|}n j|}y|j||jWnctk rtjd}tj t |}tj |_ tj |_t ||_|nXdS(Ns--i(t startswitht _long_optt _short_opttprocessR;Rtsystexc_infoRtGErrortstrt OPTION_ERRORtdomaintOPTION_ERROR_BAD_VALUEtcodetmessage(t option_namet option_valuetgrouptoptR4tgerror(R8R(s1/usr/lib64/python2.7/site-packages/glib/option.pytcallbacks    ( RR R6R>R9R<tset_translation_domainR?textendR-t add_entries(RR8RURRtentriesR@((R8Rs1/usr/lib64/python2.7/site-packages/glib/option.pyt_to_goptiongroups  cCs|j|j|S(s Returns the corresponding GOptionGroup object. Can be used as parameter for gnome_program_init(), gtk_init(). (tset_values_to_defaultsRZ(RR8((s1/usr/lib64/python2.7/site-packages/glib/option.pytget_option_groups cCs|x`|jD]U}|jj|j}t|tr |j}|j|||j|jRmRt OptionContexttset_help_enabledRgtset_ignore_unknown_optionsRht option_groupsR_R R\t add_groupR7R?RWR-RXtset_main_group( RR;tparameter_stringtcontextt option_grouptg_groupRUt main_groupt main_entriesR@((RR;s1/usr/lib64/python2.7/site-packages/glib/option.pyt_to_goptioncontexts&     cOst|dtr6tjj|t|||dSt|dkr| rt|dtr|djs||d_n|dj|k rtdqnt|dt jr|j j |ddSntjj|||dS(Niis"invalid OptionGroup (wrong parser)( R_R`RR tadd_option_groupR RR8RRRrR(RRR((s1/usr/lib64/python2.7/site-packages/glib/option.pyR|.s  cCsG|j}x6|jD]+}t|tjr|j|jqqW|S(N(R?RrR_RR RW(RtoptionsRR((s1/usr/lib64/python2.7/site-packages/glib/option.pyt_get_all_options>s  cCs5|j|}|jtjdg|d|(dS(Nii(R{tparseRGtargv(RtlargstrargsR;Rv((s1/usr/lib64/python2.7/site-packages/glib/option.pyt _process_argsEsc CsA|p g}y"tjj|||\}}Wntjk rtjd}|jtjkrin|j tj krt |j q|j tj krt|j q|j tjkrt|j qnXxD|jD]9}x0|jjjD]\}}|j||qWqW|dt| !}||fS(Nii(RR t parse_argsRRIRGRHRLRKRNRMRROtOPTION_ERROR_UNKNOWN_OPTIONRtOPTION_ERROR_FAILEDRRrR;t__dict__titemst ensure_valueR( RRR;told_argsR}R4RRtkeytvalue((s1/usr/lib64/python2.7/site-packages/glib/option.pyRMs(  N( R.R/R0RRnR{R|R~RR7R(((s1/usr/lib64/python2.7/site-packages/glib/option.pyR s    (ii(R0RGRRRRRRt version_infoRJR`R(t basestringtglibtmodulesRt__all__R R R R (((s1/usr/lib64/python2.7/site-packages/glib/option.pyts.  (    Q[