MCPcopy
hub / github.com/PyGithub/PyGithub / dump

Method dump

github/MainClass.py:1003–1015  ·  view source on GitHub ↗

Dumps (pickles) a PyGithub object to a file-like object. Some effort is made to not pickle sensitive information like the Github credentials used in the :class:`Github` instance. But NO EFFORT is made to remove sensitive information from the object's attributes. :pa

(self, obj: GithubObject, file: BinaryIO, protocol: int = 0)

Source from the content-addressed store, hash-verified

1001 return klass(self.__requester, headers, raw_data)
1002
1003 def dump(self, obj: GithubObject, file: BinaryIO, protocol: int = 0) -> None:
1004 """
1005 Dumps (pickles) a PyGithub object to a file-like object. Some effort is made to not pickle sensitive
1006 information like the Github credentials used in the :class:`Github` instance. But NO EFFORT is made to remove
1007 sensitive information from the object's attributes.
1008
1009 :param obj: the object to pickle
1010 :param file: the file-like object to pickle to
1011 :param protocol: the `pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-
1012 stream-format>`_
1013
1014 """
1015 pickle.dump((obj.__class__, obj.raw_data, obj.raw_headers), file, protocol)
1016
1017 def load(self, f: BinaryIO) -> Any:
1018 """

Callers 2

indexMethod · 0.80
setUpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected