File: //lib64/python3.6/site-packages/ldap/__pycache__/compat.cpython-36.opt-1.pyc
3
�`a� � @ s d Z ddlZddlZejd dk r�ddlmZmZ ddlmZ ddlmZ ddlm Z
ddlmZ dd lmZ dd
l
mZ dd� Z ed
� nHddl
mZ eZddlmZmZm Z mZ ddlmZ dd
lmZ dd� ZyddlmZ W n, ek
�r ejejB dfdd�ZY nX dS )z#Compatibility wrappers for Py2/Py3.� N� )�UserDict�IterableUserDict)�quote)�
quote_plus)�unquote)�urlopen)�urlparse)�MutableMappingc C s | j d�} t| �}|jd�S )z0Specialized unquote that uses UTF-8 for parsing.�asciizutf-8)�encode�urllib_unquote�decode)ZuriZunquoted� r �/usr/lib64/python3.6/compat.pyr s
r aR def reraise(exc_type, exc_value, exc_traceback):
"""Re-raise an exception given information from sys.exc_info()
Note that unlike six.reraise, this does not support replacing the
traceback. All arguments must come from a single sys.exc_info() call.
"""
raise exc_type, exc_value, exc_traceback
)r )r r r r c C s |�dS )z�Re-raise an exception given information from sys.exc_info()
Note that unlike six.reraise, this does not support replacing the
traceback. All arguments must come from a single sys.exc_info() call.
Nr )�exc_type� exc_value�
exc_tracebackr r r �reraise'