MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected