�
��@sEddkZddkZddklZddklZd�ZdS(i�N(tutil(tcommonc
s�titi�titi�ttii��}|i dd�|i
dd�id�o>|d}|di|�o|dt|�|d<q�nti}|i
dd�i
�djoti|tii�}n||d<ti|d <d|d<t|d
<t|d<t|d<|i
dd�i
�djod|d<nd|d<g�g�ti����fd��d���fd�}|||�}zx|D]}�|�q�WWdt|dd���XdS(Nt PATH_INFOttSERVER_SOFTWAREs
Microsoft-IIStSCRIPT_NAMEtHTTP_EXPECTs100-continues
wsgi.inputswsgi.errorsiiswsgi.versionswsgi.multithreadswsgi.multiprocesss
wsgi.run_oncetHTTPStofftont1tyesthttpsswsgi.url_schemethttpcs��ptd��n]�pU�\}}�(�id|�x|D]}�id|�qGW�id�n�i|��i�dS(Nswrite() before start_response()sStatus: %s
s%s: %s
s
(tAssertionErrortwritetflush(tdatatstatustresponse_headerstheader(theaders_settheaders_senttout(sF/sys/lib/python/lib/python2.5/site-packages/mercurial/hgweb/wsgicgi.pyR/s
csg|o8z*�o|d|d|d��nWdd}Xn�otd��n||g�(�S(NiiisHeaders already set!(tNoneR(RRtexc_info(RRR(sF/sys/lib/python/lib/python2.5/site-packages/mercurial/hgweb/wsgicgi.pytstart_response>s#
tclosecSsdS(N(R(((sF/sys/lib/python/lib/python2.5/site-packages/mercurial/hgweb/wsgicgi.pyt<lambda>Qs(ii(sonR
syes(Rt setbinarytsyststdintstdouttdicttostenviront iteritemst
setdefaulttgett
startswithtlentlowerRtcontinuereaderRtstderrtFalsetTrueRtgetattr(tapplicationR#t
scriptnameRRtcontenttchunk((RRRRsF/sys/lib/python/lib/python2.5/site-packages/mercurial/hgweb/wsgicgi.pytlaunchs>
(R"Rt mercurialRtmercurial.hgwebRR3(((sF/sys/lib/python/lib/python2.5/site-packages/mercurial/hgweb/wsgicgi.pys<module>s
|