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

Method close

github/Requester.py:514–523  ·  view source on GitHub ↗

Close the connection to the server.

(self)

Source from the content-addressed store, hash-verified

512 return f"{url}?{urllib.parse.urlencode(sorted(parameter_list))}"
513
514 def close(self) -> None:
515 """
516 Close the connection to the server.
517 """
518 with self.__connection_lock:
519 if self.__connection is not None:
520 self.__connection.close()
521 self.__connection = None
522 while self.__custom_connections:
523 self.__custom_connections.popleft().close()
524
525 @property
526 def kwargs(self) -> dict[str, Any]:

Callers 4

closeMethod · 0.45
closeMethod · 0.45
__requestRawMethod · 0.45
__createConnectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected