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

Method parse

pgpy/packet/fields.py:240–245  ·  view source on GitHub ↗
(self, packet)

Source from the content-addressed store, hash-verified

238 return sum(len(sp) for sp in self._unhashed_sp.values())
239
240 def parse(self, packet):
241 # parse just one packet and add it to the unhashed subpacket ordereddict
242 # I actually have yet to come across a User Attribute packet with more than one subpacket
243 # which makes sense, given that there is only one defined subpacket
244 sp = UserAttribute(packet)
245 self[sp.__class__.__name__] = sp
246
247
248class Signature(MPIs):

Callers

nothing calls this directly

Calls 1

UserAttributeClass · 0.70

Tested by

no test coverage detected