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ú/_compat.pyÚ<lambda>ór	cCs|j|_dd„|_|S)NcSst|ƒ d¡S)Nzutf-8)ÚunicodeÚencoderrrrr	r
z implements_str.<locals>.<lambda>)Ú__str__Z__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ÚnameZ
this_basesÚd©ÚbasesÚmetarrÚ__new__9sz)with_metaclass.<locals>.metaclass.__new__N)Ú__name__Ú
__module__Ú__qualname__rrrrrÚ	metaclass8sr"Ztemporary_classr)Útyper)rrr"rrrÚwith_metaclass7sr$cCshzddlm}Wntk
r&YdSXd|kr4dSt| dd¡ƒ ¡dkrdddlm}|tdƒƒdS)	Nr)ÚoptZthreadszenable-threadsÚ0)ZfalseZoffZnor&)Ú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ÿÿr.)N)ÚsysZOptionalZTupleZAnyZTypeÚversion_infoZPY2ZurlparserZ	text_typeZQueueZqueuer)Zstring_typesÚintZlongÚfloatZnumber_typesZ	int_typesrrÚexecZurllib.parseÚparserrr$r.rrrrÚ<module>s.	



Back to Directory File Manager