[Python-checkins] python/dist/src/Lib imaplib.py,1.76,1.77
pierslauder@users.sourceforge.net
pierslauder at users.sourceforge.net
Tue Jul 5 06:20:09 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19841/dist/src/Lib
Modified Files:
imaplib.py
Log Message:
fixed tag generation to avoid null tags
Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- imaplib.py 1 Jun 2005 23:50:51 -0000 1.76
+++ imaplib.py 5 Jul 2005 04:20:07 -0000 1.77
@@ -20,7 +20,7 @@
# PROXYAUTH contributed by Rick Holbert <holbert.13 at osu.edu> November 2002.
# GET/SETANNOTATION contributed by Tomas Lindroos <skitta at abo.fi> June 2005.
-__version__ = "2.56"
+__version__ = "2.57"
import binascii, os, random, re, socket, sys, time
@@ -165,7 +165,7 @@
# Create unique tag for this session,
# and compile tagged response matcher.
- self.tagpre = Int2AP(random.randint(0, 31999))
+ self.tagpre = Int2AP(random.randint(4096, 65535))
self.tagre = re.compile(r'(?P<tag>'
+ self.tagpre
+ r'\d+) (?P<type>[A-Z]+) (?P<data>.*)')
More information about the Python-checkins
mailing list