File: //lib/python2.7/site-packages/leapp/compat.pyo
�
�S4bc @ s d d l Z d d l Z d d l Z d Z e j d k Z e Z d Z e r� d d l Z e e
� d d
f Z e d Z d d l m
Z
e
� d Z d
� Z d d � Z nQ d d l j Z d d l Z e f Z e Z e j Z d � Z d d � Z d � Z
d S( i����Nt string_typest
IS_PYTHON2t
IS_PYTHON3t httplibt unicode_typet raise_with_tracebacki t __builtins__t unicodei ( R c s7 d � � � � f d � } � � f d � } | | f S( Nc S s( t | t � d d � r | St | � S( NR R ( t
isinstancet globalsR ( t u( ( s0 /usr/lib/python2.7/site-packages/leapp/compat.pyt us s c s � j � | � � S( N( t ugettext( t msg( t tR ( s0 /usr/lib/python2.7/site-packages/leapp/compat.pyt singular s c s � j � | � � | � | � S( N( t ungettext( t msg1t msg2t n( R R ( s0 /usr/lib/python2.7/site-packages/leapp/compat.pyt plural s ( ( R R R ( ( R R s0 /usr/lib/python2.7/site-packages/leapp/compat.pyt
gettext_setup s c C s) t j | | r | j d � n d � d S( Ns utf-8( t localet setlocalet encodet None( t categoryt loc( ( s0 /usr/lib/python2.7/site-packages/leapp/compat.pyR % s c C s | j } | j } | | f S( N( t gettextt ngettext( R R R ( ( s0 /usr/lib/python2.7/site-packages/leapp/compat.pyR 0 s c C s t j | | � d S( N( R R ( R R ( ( s0 /usr/lib/python2.7/site-packages/leapp/compat.pyR 5 s c C s | j | � � d S( 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( t with_traceback( t exct tb( ( s0 /usr/lib/python2.7/site-packages/leapp/compat.pyR 8 s ( s string_typess
IS_PYTHON2s
IS_PYTHON3s httplibs unicode_types raise_with_traceback( i ( ( R R t syst __all__t version_infoR R R R t strR R t leapp.compatpy2onlyR t
builtins_dictR R R t http.clientt clientt builtinst __dict__( ( ( s0 /usr/lib/python2.7/site-packages/leapp/compat.pyt <module> s,