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

Method _getpkt

pgpy/pgp.py:2616–2617  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

2614
2615 ##TODO: see issue #141 and fix this better
2616 def _getpkt(d):
2617 return Packet(d) if d else None
2618 # some packets are filtered out
2619 getpkt = filter(lambda p: p.header.tag != PacketTag.Trust, iter(functools.partial(_getpkt, data), None))
2620

Callers

nothing calls this directly

Calls 1

PacketClass · 0.85

Tested by

no test coverage detected