From 6f6f3fb06c620413080969a049275bc572f2ef3e Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Sat, 18 Jul 2015 18:44:56 -0400 Subject: [PATCH] simplified function by using map() --- edward-bot | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/edward-bot b/edward-bot index ccbf876..c8b02ec 100755 --- a/edward-bot +++ b/edward-bot @@ -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): -- 2.25.1