Viewing File: /opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/__pycache__/_compat.cpython-38.pyc

U

��\��@s�ddlZejddkZerbddlZeZ	ddl
Zee	fZ
eeefZeefZdd�Zdd�Zed�nNddlmZddlZeZ	e	fZ
eefZefZdd�Zd	d
�Zdd�Zddd
�Zdd�Zdd�ZdS)�N�cCs|��S�N)�	iteritems��x�r�C/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/_compat.py�<lambda>�r	cCs|j|_dd�|_|S)NcSst|��d�S)Nzutf-8)�unicode�encoderrrrr	r
z implements_str.<locals>.<lambda>)�__str__�__unicode__)�clsrrr�implements_strs
rz5def reraise(tp, value, tb=None):
 raise tp, value, tbcCs|��Sr)�itemsrrrrr	'r
cCs|Srrrrrr�	_identity)srcCs|Srrrrrrr,scCs(|dk	st�|j|k	r |�|��|�dSr)�AssertionError�
__traceback__�with_traceback)�tp�value�tbrrr�reraise/s

rcs&G��fdd�dt�}t�|ddi�S)NcseZdZ��fdd�ZdS)z!with_metaclass.<locals>.metaclasscs�|�|�Srr)r�name�
this_bases�d��bases�metarr�__new__9sz)with_metaclass.<locals>.metaclass.__new__N)�__name__�
__module__�__qualname__r rrrr�	metaclass8sr$�temporary_classr)�typer )rrr$rrr�with_metaclass7sr'cCshzddlm}Wntk
r&YdSXd|kr4dSt|�dd����dkrdddlm}|td��dS)	Nr)�opt�threadszenable-threads�0)�false�off�nor*)�warnz�We detected the use of uwsgi with disabled threads.  This will cause issues with the transport you are trying to use.  Please enable threading for uwsgi.  (Enable the "enable-threads" flag).)	Zuwsgir(�ImportError�str�get�lower�warningsr.�Warning)r(r.rrr�check_thread_support?s��r5)N)�sys�OptionalZTupleZAnyZType�version_info�PY2�urlparser�	text_typeZQueue�queuer0�string_types�int�long�floatZnumber_typesZ	int_typesrr�exec�urllib.parse�parserrr'r5rrrr�<module>s.	



Back to Directory File Manager