summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-20 17:05:52 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-20 17:05:52 (GMT)
commitb26a1b4e2b99f4473c2133a2206b782a7fa57932 (patch)
treec6fcbbac623adacff0117641975cc75d49f33da5 /Lib/imaplib.py
parent33d7f1a76c3544d2901492cfb6fc9db85f2dfbd6 (diff)
downloadcpython-b26a1b4e2b99f4473c2133a2206b782a7fa57932.zip
cpython-b26a1b4e2b99f4473c2133a2206b782a7fa57932.tar.gz
cpython-b26a1b4e2b99f4473c2133a2206b782a7fa57932.tar.bz2
Use random instead of whrandom.
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r--Lib/imaplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index 3c45b2e4..28f62f4 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -12,7 +12,7 @@ Public functions: Internaldate2tuple
Time2Internaldate
"""
-import re, socket, string, time, whrandom
+import re, socket, string, time, random
# Globals
@@ -109,7 +109,7 @@ class IMAP4:
# Create unique tag for this session,
# and compile tagged response matcher.
- self.tagpre = Int2AP(whrandom.random()*32000)
+ self.tagpre = Int2AP(random.random()*32000)
self.tagre = re.compile(r'(?P<tag>'
+ self.tagpre
+ r'\d+) (?P<type>[A-Z]+) (?P<data>.*)')