MCPcopy Create free account
hub / github.com/adobe/Marinus / __open_file

Method __open_file

python3_cron_scripts/libs3/X509Parser.py:913–926  ·  view source on GitHub ↗

Read a certificate in from an OS file

(self, filename)

Source from the content-addressed store, hash-verified

911 return cert_object
912
913 def __open_file(self, filename):
914 """
915 Read a certificate in from an OS file
916 """
917 bytes = None
918 try:
919 with open(filename, "rb") as f:
920 bytes = f.read()
921 except OSError as err:
922 self._logger.error("OS error': {0}".format(err))
923 except:
924 self._logger.error("Unexpected error: " + str(sys.exc_info()[0]))
925
926 return bytes
927
928 def __parse(self, data, certSource):
929 """

Callers 1

parse_fileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected