simplified function by using map()
authorAndrew Engelbrecht <andrew@localhost.localdomain>
Sat, 18 Jul 2015 22:44:56 +0000 (18:44 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 17:46:48 +0000 (12:46 -0500)
edward-bot

index ccbf8763a0d804a0793ab6c8a2447e282b8b6bce..c8b02ec145fc093fd75e48d0e86c0daed8542ce9 100755 (executable)
@@ -186,12 +186,7 @@ def split_message (text):
 
 def decrypt_chunks (gpg_chunks):
 
-    plaintext_and_sigs_chunks = []
-
-    for gpg_chunk in gpg_chunks:
-        plaintext_and_sigs_chunks += [decrypt_chunk(gpg_chunk)]
-
-    return plaintext_and_sigs_chunks
+    return map(decrypt_chunk, gpg_chunks)
 
 
 def decrypt_chunk (gpg_chunk):