MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / response

Method response

tests/GithubRetry.py:114–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 @staticmethod
113 def response_func(content, reset=None):
114 def response():
115 stream = BytesIO(content.encode("utf8"))
116 return urllib3.response.HTTPResponse(
117 body=stream,
118 preload_content=False,
119 headers={"X-RateLimit-Reset": f"{reset}"} if reset else {},
120 status=403,
121 )
122
123 return response
124

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected