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

Method _get_css

Lib/xmlrpc/server.py:908–912  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

906 """
907
908 def _get_css(self, url):
909 path_here = os.path.dirname(os.path.realpath(__file__))
910 css_path = os.path.join(path_here, "..", "pydoc_data", "_pydoc.css")
911 with open(css_path, mode="rb") as fp:
912 return fp.read()
913
914 def do_GET(self):
915 """Handles the HTTP GET request.

Callers 1

do_GETMethod · 0.95

Calls 5

openFunction · 0.50
dirnameMethod · 0.45
realpathMethod · 0.45
joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected