From: Andrew Engelbrecht Date: Wed, 22 Jul 2015 15:49:56 +0000 (-0400) Subject: don't pass back the object pointer X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=80aec7fbb1b92c818f3866bccecbbf28c4f73b2a;p=edward.git don't pass back the object pointer because it is unchanged. --- diff --git a/edward b/edward index c05a350..edff8c7 100755 --- a/edward +++ b/edward @@ -139,8 +139,8 @@ def parse_pgp_mime (email_text, gpgme_ctx): email_struct = email.parser.Parser().parsestr(email_text) eddy_obj = parse_mime(email_struct) - eddy_obj = split_payloads(eddy_obj) - eddy_obj = gpg_on_payloads(eddy_obj, gpgme_ctx) + split_payloads(eddy_obj) + gpg_on_payloads(eddy_obj, gpgme_ctx) return eddy_obj @@ -242,8 +242,6 @@ def split_payloads (eddy_obj): for match_type in match_types: do_to_eddys_pieces(split_payload_pieces, eddy_obj, match_type) - return eddy_obj - def split_payload_pieces (eddy_obj, match_type): @@ -260,8 +258,6 @@ def gpg_on_payloads (eddy_obj, gpgme_ctx): do_to_eddys_pieces(gpg_on_payload_pieces, eddy_obj, gpgme_ctx) - return eddy_obj - def gpg_on_payload_pieces (eddy_obj, gpgme_ctx):