config root man

Current Path : /compat/linux/proc/68247/root/usr/local/lib/python2.5/wsgiref/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/root/usr/local/lib/python2.5/wsgiref/util.pyo

łň
h”Rc@sËdZddkZddddddgZddd	„ƒYZd
„Zd„Zdd
„Zd„Zd„Zhdd<dd<dd<dd<dd<dd<dd<dd<i	Z
d„ZdS(s$Miscellaneous WSGI-related Utilitiesi˙˙˙˙NtFileWrappertguess_schemetapplication_uritrequest_uritshift_path_infotsetup_testing_defaultscBs5eZdZdd„Zd„Zd„Zd„ZRS(s1Wrapper to convert file-like objects to iterablesi cCs6||_||_t|dƒo|i|_ndS(Ntclose(tfileliketblksizethasattrR(tselfRR((s(/usr/local/lib/python2.5/wsgiref/util.pyt__init__s		cCs.|ii|iƒ}|o|Snt‚dS(N(RtreadRt
IndexError(R
tkeytdata((s(/usr/local/lib/python2.5/wsgiref/util.pyt__getitem__scCs|S(N((R
((s(/usr/local/lib/python2.5/wsgiref/util.pyt__iter__scCs.|ii|iƒ}|o|Snt‚dS(N(RRRt
StopIteration(R
R((s(/usr/local/lib/python2.5/wsgiref/util.pytnexts(t__name__t
__module__t__doc__RRRR(((s(/usr/local/lib/python2.5/wsgiref/util.pyRs
		cCs&|idƒdjodSndSdS(	sMReturn a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
    tHTTPStyestont1thttpsthttpN(syessonR(tget(tenviron((s(/usr/local/lib/python2.5/wsgiref/util.pyR*scCsŐ|dd}ddkl}|idƒo||d7}nr||d7}|ddjo+|dd	jo|d
|d7}qąn(|ddjo|d
|d7}n|||idƒpd
ƒ7}|S(s@Return the application's base URI (no PATH_INFO or QUERY_STRING)swsgi.url_schemes://i˙˙˙˙(tquotet	HTTP_HOSTtSERVER_NAMERtSERVER_PORTt443t:t80tSCRIPT_NAMEt/(turllibRR(RturlR((s(/usr/local/lib/python2.5/wsgiref/util.pyR2s icCs‘t|ƒ}ddkl}||iddƒƒ}|idƒp||d7}n||7}|o&|idƒo|d|d7}n|S(	sBReturn the full request URI, optionally including the query stringi˙˙˙˙(Rt	PATH_INFOtR&itQUERY_STRINGt?(RR(RR(Rt
include_queryR)Rt	path_info((s(/usr/local/lib/python2.5/wsgiref/util.pyRFs
cCs.|iddƒ}|pdSn|idƒ}g}|dd!D]%}|o|djo||qBqB~|dd+|d}|d=|iddƒ}ti|d|ƒ}|idƒo|d }n|o|idƒo|d7}n||d<di|ƒ|d<|djo
d}n|S(	sZShift a name from PATH_INFO to SCRIPT_NAME, returning it

    If there are no remaining path segments in PATH_INFO, return None.
    Note: 'environ' is modified in-place; use a copy if you need to keep
    the original PATH_INFO or SCRIPT_NAME.

    Note: when PATH_INFO is just a '/', this returns '' and appends a trailing
    '/' to SCRIPT_NAME, even though empty path segments are normally ignored,
    and SCRIPT_NAME doesn't normally end in a '/'.  This is intentional
    behavior, to ensure that an application can tell the difference between
    '/x' and '/x/' when traversing to objects.
    R*R+R'ii˙˙˙˙t.R&N(RtNonetsplitt	posixpathtnormpathtendswithtjoin(RR/t
path_partst_[1]tptnametscript_name((s(/usr/local/lib/python2.5/wsgiref/util.pyRSs$
G



cCs_|iddƒ|iddƒ|id|dƒ|iddƒd|jo1d	|jo$|idd
ƒ|id	dƒn|iddƒ|iddƒ|iddƒ|iddƒddkl}|id|d
ƒƒ|id|ƒƒ|idt|ƒƒ|ddjo|iddƒn&|ddjo|iddƒndS(s:Update 'environ' with trivial defaults for testing purposes

    This adds various parameters required for WSGI, including HTTP_HOST,
    SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO,
    and all of the wsgi.* variables.  It only supplies default values,
    and does not replace any existing settings for these variables.

    This routine is intended to make it easier for unit tests of WSGI
    servers and applications to set up dummy environments.  It should *not*
    be used by actual WSGI servers or applications, since the data is fake!
    R!s	127.0.0.1tSERVER_PROTOCOLsHTTP/1.0R tREQUEST_METHODtGETR&R*R+R'swsgi.versioniis
wsgi.run_onceswsgi.multithreadswsgi.multiprocessi˙˙˙˙(tStringIOs
wsgi.inputswsgi.errorsswsgi.url_schemeRR"R%RR#N(ii(t
setdefaultR?R(RR?((s(/usr/local/lib/python2.5/wsgiref/util.pyR|s&
t
connections
keep-alivesproxy-authenticatesproxy-authorizationttettrailersstransfer-encodingtupgradecCst|iƒƒS(s?Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header(t_hoppishtlower(theader_name((s(/usr/local/lib/python2.5/wsgiref/util.pyt
is_hop_by_hopŤs((RR3t__all__RRRRRRthas_keyRERH(((s(/usr/local/lib/python2.5/wsgiref/util.pys<module>s		
	)	)$

Man Man