Viewing File: /opt/alt/python35/lib/python3.5/site-packages/sentry_sdk/__pycache__/_compat.cpython-35.opt-1.pyc



\@sddlZejddkZerddlZeZddlZeefZ	e
eefZ
e
efZddZddZednrddljZddlZeZefZ	e
efZ
e
fZddZd	d
ZddZddd
ZddZddZdS)NcCs
|jS)N)	iteritems)xr/_compat.py<lambda>srcCs|j|_dd|_|S)NcSst|jdS)Nzutf-8)unicodeencode)rrrrrsz implements_str.<locals>.<lambda>)__str__Z__unicode__)clsrrrimplements_strsrz5def reraise(tp, value, tb=None):
 raise tp, value, tbcCs
|jS)N)items)rrrrr'scCs|S)Nr)rrrr	_identity)srcCs|S)Nr)rrrrr,scCs(|j|k	r|j||dS)N)
__traceback__with_traceback)tpvaluetbrrrreraise/srcs5Gfdddt}tj|dfiS)Ncs%eZdZfddZdS)z!with_metaclass.<locals>.metaclasscs||S)Nr)rnameZ
this_basesd)basesmetarr__new__9sz)with_metaclass.<locals>.metaclass.__new__N)__name__
__module____qualname__rr)rrrr	metaclass8srZtemporary_class)typer)rrrr)rrrwith_metaclass7src
Csyddlm}Wntk
r,dSYnXd|kr=dSt|jddjdkrdd	lm}|td
dS)Nr)optthreadszenable-threads0falseoffno)warnzWe 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).)r#r$r%r")	Zuwsgir ImportErrorstrgetlowerwarningsr&Warning)r r&rrrcheck_thread_support?s
	$r-)sysversion_infoZPY2urlparserZ	text_typeQueuequeuer(Zstring_typesintlongfloatZnumber_typesZ	int_typesrrexecZurllib.parseparserrrr-rrrr<module>s.	
		
Back to Directory File Manager