gpg: re-structure public key packets for easier parsing

This commit is contained in:
Roman Zeyde
2016-07-22 22:51:02 +03:00
parent 744696fdee
commit b9b7b8dafd
2 changed files with 27 additions and 1 deletions

View File

@@ -110,4 +110,5 @@ def public_key_path(request):
def test_gpg_files(public_key_path): # pylint: disable=redefined-outer-name
decode.load_public_key(open(public_key_path, 'rb').read())
with open(public_key_path, 'rb') as f:
decode.parse_public_key(f)