MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/wsgiref/handlers.py:567–576  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

565 # There is no way for CGI code to tell whether the option was set, so a
566 # separate handler class is provided.
567 def __init__(self):
568 environ= read_environ()
569 path = environ.get('PATH_INFO', '')
570 script = environ.get('SCRIPT_NAME', '')
571 if (path+'/').startswith(script+'/'):
572 environ['PATH_INFO'] = path[len(script):]
573 BaseCGIHandler.__init__(
574 self, sys.stdin.buffer, sys.stdout.buffer, sys.stderr,
575 environ, multithread=False, multiprocess=True
576 )

Callers

nothing calls this directly

Calls 4

read_environFunction · 0.85
getMethod · 0.45
startswithMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected