PGPKey objects represent OpenPGP compliant keys along with all of their associated data. PGPKey implements the `__str__` method, the output of which will be the key composition in OpenPGP-compliant ASCII-armored format. PGPKey implements the `__bytes__` method, the
(self)
| 1612 | return key |
| 1613 | |
| 1614 | def __init__(self): |
| 1615 | """ |
| 1616 | PGPKey objects represent OpenPGP compliant keys along with all of their associated data. |
| 1617 | |
| 1618 | PGPKey implements the `__str__` method, the output of which will be the key composition in |
| 1619 | OpenPGP-compliant ASCII-armored format. |
| 1620 | |
| 1621 | PGPKey implements the `__bytes__` method, the output of which will be the key composition in |
| 1622 | OpenPGP-compliant binary format. |
| 1623 | |
| 1624 | Any signatures within the PGPKey that are marked as being non-exportable will not be included in the output |
| 1625 | of either of those methods. |
| 1626 | """ |
| 1627 | super(PGPKey, self).__init__() |
| 1628 | self._key = None |
| 1629 | self._children = collections.OrderedDict() |
| 1630 | self._signatures = SorteDeque() |
| 1631 | self._uids = SorteDeque() |
| 1632 | self._sibling = None |
| 1633 | self._self_verified = None |
| 1634 | self._require_usage_flags = True |
| 1635 | |
| 1636 | def __bytearray__(self): |
| 1637 | _bytes = bytearray() |
nothing calls this directly
no test coverage detected