MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python2.7/site-packages/leapp/compat.pyc
�
g��fc@sddlZddlZddlZddlZdZejdkZeZdZer�ddl	Z	e
e�d	d
fZedZddl
mZe�d	Zd
�Zdd�ZnQddljZ	ddlZe
fZe
ZejZd�Zdd�Zd�Zd�ZdS(i����Ntstring_typest
IS_PYTHON2t
IS_PYTHON3thttplibtunicode_typetraise_with_tracebackit__builtins__tunicodei(Rcs7d����fd�}��fd�}||fS(NcSs(t|t�dd�r|St|�S(NRR(t
isinstancetglobalsR(tu((s0/usr/lib/python2.7/site-packages/leapp/compat.pytusscs�j�|��S(N(tugettext(tmsg(ttR(s0/usr/lib/python2.7/site-packages/leapp/compat.pytsingularscs�j�|��|�|�S(N(t	ungettext(tmsg1tmsg2tn(RR(s0/usr/lib/python2.7/site-packages/leapp/compat.pytplural!s((RRR((RRs0/usr/lib/python2.7/site-packages/leapp/compat.pyt
gettext_setups	cCs)tj||r|jd�nd�dS(Nsutf-8(tlocalet	setlocaletencodetNone(tcategorytloc((s0/usr/lib/python2.7/site-packages/leapp/compat.pyR&scCs|j}|j}||fS(N(tgettexttngettext(RRR((s0/usr/lib/python2.7/site-packages/leapp/compat.pyR1s		cCstj||�dS(N(RR(RR((s0/usr/lib/python2.7/site-packages/leapp/compat.pyR6scCs|j|��dS(s�
        This is a helper function to raise exceptions with a traceback.

        This is function is required to workaround the syntax changes between Python 2 and 3
        Python 3.4 introduced a with_traceback method to Exception classes and Python 3 removed the syntax
        which used to be used in Python 2.

        :param exc: Exception to raise
        :param tb:  Traceback to use
        :return: Nothing
        N(twith_traceback(texcttb((s0/usr/lib/python2.7/site-packages/leapp/compat.pyR9scCsgtjdkr%|j|�j|�S|j|�}tjj|�}|tj|<|j	j
|�|S(s�
    Loads a module using the given importer and module name

    :param importer: A finder implementation (returned by e.g. pkgutils.iter_modules)
    :param name: Module name
    :return: The loaded module
    ii(ii(tsystversion_infotfind_moduletload_modulet	find_spect	importlibtutiltmodule_from_spectmodulestloadertexec_module(timportertnametspectmodule((s0/usr/lib/python2.7/site-packages/leapp/compat.pyR$Hs
(sstring_typess
IS_PYTHON2s
IS_PYTHON3shttplibsunicode_typesraise_with_traceback(i((RR&RR!t__all__R"RRRRtstrR	Rtleapp.compatpy2onlyRt
builtins_dictRRRthttp.clienttclienttbuiltinst__dict__R$(((s0/usr/lib/python2.7/site-packages/leapp/compat.pyt<module>s0