403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/language_support_pkgs.pyc
ó
jdQc@sMddlZddlZdZddd„ƒYZdd„Zdd„ZdS(iÿÿÿÿNs-/usr/share/language-selector/data/pkg_dependstLanguageSupportcBs•eZdZddd„Zed„Zed„Zed„Zed„Z	d„Z
d„Zd„Ze
d„ƒZe
d	„ƒZe
d
„ƒZRS(cCsC|dkrtjƒ|_n	||_|j|p6tƒ|_dS(N(tNonetapttCachet	apt_cachet_parse_pkg_dependstDEFAULT_DEPENDS_FILEtpkg_depends(tselfRtdepends_file((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyt__init__s
	cCsg}|jj|iƒ}xY|j|j|ƒiƒjƒD]6}x-|D]%}||jkrJ|j|ƒqJqJWq=Wxm|jdiƒjƒD]S}xJ|D]B}	x9|j|	|ƒD]%}
|
|jkr¶|j|
ƒq¶q¶WqWqW|sg|D]}|j|jsô|^qô}n|S(sˆGet language support packages for a package and locale.

        Note that this does not include support packages which are not specific
        to a particular trigger package, e. g. general language packs. To get
        those, call this with package==''.

        By default, only return packages which are not installed. If installed
        is True, return all packages instead.
        t(Rtgett_langcode_from_localetvaluesRtappendt_expand_pkg_patternt	installed(RtpackagetlocaleRtpackagestdepmaptpkglisttptpattern_listtpatternt
pkg_candidate((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pytby_package_and_locales
(

,cCsqg}xd|jD]Y}y<|dks5|j|jrQ||j|||ƒ7}nWqtk
rhqqXqW|S(sŸGet language support packages for a locale.

        Return all packages which need to be installed in order to provide
        language support for the given locale for all already installed
        packages. This should be called after adding a new locale to the
        system.

        By default, only return packages which are not installed. If installed
        is True, return all packages instead.
        R(RRRRtKeyError(RRRRttrigger((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyt	by_locale3s 
cCs@tƒ}x0|jƒD]"}|j|j|||ƒƒqW|S(s:Get language support packages for a package.

        This will install language support for that package for all available
        system languages. This is a wrapper around available_languages() and
        by_package_and_locale().

        Note that this does not include support packages which are not specific
        to a particular trigger package, e. g. general language packs. To get
        those, call this with package==''.

        By default, only return packages which are not installed. If installed
        is True, return all packages instead.
        (tsettavailable_languagestupdateR(RRRRtlang((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyt
by_packageIs	 cCsFtƒ}x-|jƒD]}|j|j||ƒƒqW|j|ƒS(sLGet language support packages for current system.

        Return all packages which need to be installed in order to provide
        language support all system locales for all already installed
        packages. This should be called after installing the system without
        language support packages (perhaps because there was no network
        available to download them).

        This is a wrapper around available_languages() and by_locale().

        By default, only return packages which are not installed. If installed
        is True, return all packages instead.
        (RR R!Rt_hunspell_frami_special(RRRR"((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pytmissing\s	cCsºg}x]dddgD]L}d|d}y$|j|jrM|j|ƒnWqtk
raqXqWt|ƒdkr||Stƒ}x.|D]&}|d|krŒ|j|ƒqŒqŒW|S(sy Ignore missing hunspell-de-xx if hunspell-de-xx-frami is installed.

        https://launchpad.net/bugs/1103547
        tdetattchshunspell-de-s-framii(RRRRtlenRtadd(RRtframistcountrytframitpackages_newtpack((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyR$os
	
cCsutƒ}tjdgdtƒ}xM|jƒD]?}|j|ƒ|jdƒs.|j|jdƒdƒq.q.W|S(s¥List available languages in the system.

        The list items can be passed as the "locale" argument of by_locale(),
        by_package_and_locale(), etc.
        s*/usr/share/language-tools/language-optionstuniversal_newlinestzh_t_i(Rt
subprocesstcheck_outputtTruetsplitR*t
startswith(Rt	languagestlang_stringR"((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyR „s			
!c	
Cs¤i}t|ƒŒ}x‚|D]z}|jƒ}|s|jdƒrJqn|jdƒ\}}}}|j|iƒj|iƒj|gƒj|ƒqWWdQX|S(sqParse pkg_depends file.

        Return trigger_package -> langcode -> category -> [dependency,...] map.
        t#t:N(topentstripR7R6t
setdefaultR(	RtfilenametmaptftlinetcattlcRtdep((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyR—s
!cCsI|jdƒs|jdƒr"dS|jdƒr5dS|jddƒdS(	s:Turn a locale name into a language code as in pkg_depends.tzh_CNtzh_SGszh-hansR1szh-hantR2ii(R7R6(tklassR((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyR
©s
cCsã|dkrd}n|dkr*d}n|jddƒdjƒ}d}d}yC|jddƒ\}}d	|kr”|jd	dƒ\}}nWntk
r®|}nX|d
||fg}|r|jd|||fƒ|jd|||fƒnNxK|j|ƒD]:}|jd|||fƒ|jd|||fƒqW|rs|jd|||fƒn|rŸ|rŸ|jd
||||fƒn|dkrß|dkrË|j|dƒqß|j|dƒn|S(s9Return all possible suffixes for given pattern and localeszh-hansRFszh-hanttzh_TWt.iiR2t@s%s%ss%s%s%ss%s%s-%ss
%s%s-%s-%stzhtcntsgN(RMRN(R6tlowerRt
ValueErrorRt_countries_for_lang(RHRRtvariantR,R"tpkgs((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyR·s<		

 c
Cs|jd	krîi|_tdƒÅ}x»|D]³}|jddƒdjdƒd}|scq.n|jddƒdjdƒd}y|jdƒ\}}Wntk
rµq.nX|jƒ}|jj|tƒƒj|ƒq.WWd	QXn|jj	|gƒS(
s-Return a list of countries for given languages/usr/share/i18n/SUPPORTEDR:iit RJRKR2N(
tlang_country_mapRR<R6RPROR>RR*R(RHR"RARBtltc((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyRQæs	
##
,N(t__name__t
__module__RRUR
tFalseRRR#R%R$R RtclassmethodR
RRQ(((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyRs				/cCs}t||ƒ}tƒ}x9|jƒD]+}|jr%|j|j|jƒƒq%q%Wx"|D]}||jdtƒq[WdS(sCAdd language support for packages marked for installation.
    
    For all packages which are marked for installation in the given apt.Cache()
    object, mark the corresponding language packs and support packages for
    installation as well.

    This function can be used as an aptdaemon modify_cache_after plugin.
    t	from_userN(	RRtget_changestmarked_installR!R#tnametmark_installRZ(tresolvertcacheR	tlstsupport_pkgstpkg((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pytapt_cache_add_language_packsüs			 
cCs{|jdƒs"td|ƒ‚n|jddƒdd }t||ƒ}|j|dtƒ}g|D]}||^qgS(s,PackageKit WhatProvides plugin for locale().slocale(scannot handle query type t(iiÿÿÿÿR(R7tNotImplementedErrorR6RRR5(RbttypetsearchR	RRcRSR((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pytpackagekit_what_provides_locales((RR3RRRRfRk(((s9/usr/lib/python2.7/dist-packages/language_support_pkgs.pyt<module>s
ô

Youez - 2016 - github.com/yon3zu
LinuXploit