projects
/
edward.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
897cbaf
)
simplified function by using map()
author
Andrew Engelbrecht
<andrew@localhost.localdomain>
Sat, 18 Jul 2015 22:44:56 +0000
(18:44 -0400)
committer
Andrew Engelbrecht
<sudoman@ninthfloor.org>
Mon, 7 Dec 2015 17:46:48 +0000
(12:46 -0500)
edward-bot
patch
|
blob
|
blame
|
history
diff --git
a/edward-bot
b/edward-bot
index ccbf8763a0d804a0793ab6c8a2447e282b8b6bce..c8b02ec145fc093fd75e48d0e86c0daed8542ce9 100755
(executable)
--- 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):