CVS: tmda/TMDA/pythonlib/email Generator.py,1.6,1.7 _parseaddr.py,1.5,1.6

"Jason R. Mastaler" <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda/TMDA/pythonlib/email
In directory sc8-pr-cvs1:/tmp/cvs-serv32366

Modified Files:
	Generator.py _parseaddr.py 
Log Message:
sync with Python CVS

Index: Generator.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/pythonlib/email/Generator.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Generator.py	3 Jun 2003 00:32:43 -0000	1.6
+++ Generator.py	9 Jul 2003 17:58:25 -0000	1.7
@@ -363,7 +363,7 @@
 def _make_boundary(text=None):
     # Craft a random boundary.  If text is given, ensure that the chosen
     # boundary doesn't appear in the text.
-    token = random.randint(0, sys.maxint-1)
+    token = random.randrange(sys.maxint)
     boundary = ('=' * 15) + (_fmt % token) + '=='
     if text is None:
         return boundary

Index: _parseaddr.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/pythonlib/email/_parseaddr.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- _parseaddr.py	15 May 2003 21:54:51 -0000	1.5
+++ _parseaddr.py	9 Jul 2003 17:58:25 -0000	1.6
@@ -441,9 +441,6 @@
     def __len__(self):
         return len(self.addresslist)
 
-    def __str__(self):
-        return COMMASPACE.join(map(dump_address_pair, self.addresslist))
-
     def __add__(self, other):
         # Set union
         newaddr = AddressList(None)

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.