[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mailman-cvs
Subject:    [Mailman-checkins] CVS: mailman/Mailman Mailbox.py,1.9,1.10
From:       Barry Warsaw <bwarsaw () users ! sourceforge ! net>
Date:       2000-09-24 0:23:28
[Download RAW message or body]

Update of /cvsroot/mailman/mailman/Mailman
In directory slayer.i.sourceforge.net:/tmp/cvs-serv15514

Modified Files:
	Mailbox.py 
Log Message:
Mailbox._isrealfromline(): Integrate optimization from proposed Python
2.0 patch.


Index: Mailbox.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Mailbox.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** Mailbox.py	2000/09/20 01:36:26	1.9
--- Mailbox.py	2000/09/24 00:23:26	1.10
***************
*** 19,22 ****
--- 19,23 ----
  
  import string
+ import re
  import errno
  import mailbox
***************
*** 25,28 ****
--- 26,34 ----
  
  class Mailbox(mailbox.UnixMailbox):
+     _regexp = re.compile(mailbox.UnixMailbox._fromlinepattern)
+ 
+     def _isrealfromline(self, line):
+         return self._regexp.match(line)
+ 
      # msg should be an rfc822 message or a subclass.
      def AppendMessage(self, msg):


_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
http://www.python.org/mailman/listinfo/mailman-checkins

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic