MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / encodingof

Method encodingof

pgpy/constants.py:431–435  ·  view source on GitHub ↗
(cls, imagebytes)

Source from the content-addressed store, hash-verified

429
430 @classmethod
431 def encodingof(cls, imagebytes):
432 type = imghdr.what(None, h=imagebytes)
433 if type == 'jpeg':
434 return ImageEncoding.JPEG
435 return ImageEncoding.Unknown # pragma: no cover
436
437
438class SignatureType(IntEnum):

Callers 1

newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected