diff options
| author | J08nY | 2017-06-26 19:24:03 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-26 19:24:03 +0200 |
| commit | bd662b9803ebfbc0c4c82f99a00429352d877169 (patch) | |
| tree | 7f3f3826900c7d7c5ba653f86ad39223246531fd /src | |
| parent | 13359343ef34c17473a0f2d9a8e7a67f748eb3c6 (diff) | |
| download | mailman-pgp-bd662b9803ebfbc0c4c82f99a00429352d877169.tar.gz mailman-pgp-bd662b9803ebfbc0c4c82f99a00429352d877169.tar.zst mailman-pgp-bd662b9803ebfbc0c4c82f99a00429352d877169.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman_pgp/pgp/mime.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman_pgp/pgp/mime.py b/src/mailman_pgp/pgp/mime.py index 02306b4..cbbbf6a 100644 --- a/src/mailman_pgp/pgp/mime.py +++ b/src/mailman_pgp/pgp/mime.py @@ -98,7 +98,7 @@ class MIMEWrapper: def is_keys(self): for part in walk(self.msg): - if (not part.is_multipart() + if (not part.is_multipart() # noqa and part.get_content_type() != MIMEWrapper._keys_type): return False return True @@ -111,7 +111,7 @@ class MIMEWrapper: :rtype: bool """ for part in walk(self.msg): - if (not part.is_multipart() + if (not part.is_multipart() # noqa and part.get_content_type() == MIMEWrapper._keys_type): return True return False @@ -123,7 +123,7 @@ class MIMEWrapper: :return: A collection of keys. """ for part in walk(self.msg): - if (not part.is_multipart() + if (not part.is_multipart() # noqa and part.get_content_type() == MIMEWrapper._keys_type): key, _ = PGPKey.from_blob(part.get_payload()) yield key |
