[prev in list] [next in list] [prev in thread] [next in thread]
List: tmda-cvs
Subject: CVS: tmda/TMDA ChangeLog,1.251,1.252 FilterStore.py,1.3,1.4
From: Timothy Legant <tlegant () users ! sourceforge ! net>
Date: 2003-01-30 4:19:11
[Download RAW message or body]
Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1:/tmp/cvs-serv2562
Modified Files:
ChangeLog FilterStore.py
Log Message:
Added code to lowercase the list of email addresses in FlatFileStore.__init__.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/ChangeLog,v
retrieving revision 1.251
retrieving revision 1.252
diff -u -r1.251 -r1.252
--- ChangeLog 30 Jan 2003 03:54:20 -0000 1.251
+++ ChangeLog 30 Jan 2003 04:19:08 -0000 1.252
@@ -1,5 +1,8 @@
2003-01-29 Tim Legant <tim@catseye.net>
+ * FilterStore.py (FlatFileStore.__init__): Added code to lowercase
+ the list of email addresses.
+
* Util.py (findmatch): Fix bug where the for loop just kept going,
regardless of whether a match was found or not.
Index: FilterStore.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/FilterStore.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FilterStore.py 29 Jan 2003 07:17:40 -0000 1.3
+++ FilterStore.py 30 Jan 2003 04:19:09 -0000 1.4
@@ -35,7 +35,9 @@
"""
def __init__(self, name, optional):
try:
- self.key_list = Util.file_to_list(name)
+ match_list = Util.file_to_list(name)
+ self.key_list = [line.split(None, 1)[0].lower()
+ for line in match_list]
except:
if optional:
## e_type, e_value = sys.exc_info()[:2]
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic