HEX
Server: LiteSpeed
System: Linux oxygen.shetabanhost.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: rasapedi (1695)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/leapp/compat.pyo
�
�S4bc@sddlZddlZddlZdZejdkZeZdZer�ddlZe	e
�d	d
fZedZddlm
Z
e
�d	Zd
�Zdd�ZnQddljZddlZe	fZe	ZejZd�Zdd�Zd�Z
dS(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.pyR0s		cCstj||�dS(N(RR(RR((s0/usr/lib/python2.7/site-packages/leapp/compat.pyR5scCs|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.pyR8s(sstring_typess
IS_PYTHON2s
IS_PYTHON3shttplibsunicode_typesraise_with_traceback(i((RRtsyst__all__tversion_infoRRRRtstrR	Rtleapp.compatpy2onlyRt
builtins_dictRRRthttp.clienttclienttbuiltinst__dict__(((s0/usr/lib/python2.7/site-packages/leapp/compat.pyt<module>s,