Barry Warsaw pushed to branch master at mailman / Mailman Core
Commits:
aa912dd9 by Rémy Léone at 2017-10-09T12:49:28+02:00
Use list litteral for list creation
- - - - -
b2de80c4 by Barry Warsaw at 2017-10-12T14:11:45+00:00
Merge branch 'list_litteral' into 'master'
Use inline list literal rather than append()
See merge request mailman/mailman!328
- - - - -
1 changed file:
- src/mailman/handlers/tagger.py
Changes:
=====================================
src/mailman/handlers/tagger.py
=====================================
--- a/src/mailman/handlers/tagger.py
+++ b/src/mailman/handlers/tagger.py
@@ -38,9 +38,7 @@ def process(mlist, msg, msgdata):
if not mlist.topics_enabled:
return
# Extract the Subject:, Keywords:, and possibly body text
- matchlines = []
- matchlines.append(msg.get('subject', None))
- matchlines.append(msg.get('keywords', None))
+ matchlines = [msg.get('subject', None), msg.get('keywords', None)]
if mlist.topics_bodylines_limit == 0:
# Don't scan any body lines
pass
View it on GitLab:
https://gitlab.com/mailman/mailman/compare/b06af6e3968b0051faf6f9ff29ff2a39c575ec14...b2de80c4217d7b425f7047bc459b86f1bbb0f3e9
---
View it on GitLab:
https://gitlab.com/mailman/mailman/compare/b06af6e3968b0051faf6f9ff29ff2a39c575ec14...b2de80c4217d7b425f7047bc459b86f1bbb0f3e9
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org