[Zope3-checkins] CVS: Zope3/src/zope/documenttemplate - dt_util.py:1.4

Jeremy Hylton jeremy@zope.com
Mon, 30 Jun 2003 12:57:12 -0400


Update of /cvs-repository/Zope3/src/zope/documenttemplate
In directory cvs.zope.org:/tmp/cvs-serv23485

Modified Files:
	dt_util.py 
Log Message:
Use random instead of whrandom.


=== Zope3/src/zope/documenttemplate/dt_util.py 1.3 => 1.4 ===
--- Zope3/src/zope/documenttemplate/dt_util.py:1.3	Fri Apr 11 13:54:04 2003
+++ Zope3/src/zope/documenttemplate/dt_util.py	Mon Jun 30 12:57:11 2003
@@ -15,8 +15,9 @@
 
 $Id$
 """
-import re, math
-import whrandom
+import re
+import math
+import random
 
 from __builtin__ import str  # XXX needed for pickling (legacy)
 from types import ListType, StringType, TupleType
@@ -165,7 +166,7 @@
     d[name] = __builtins__[name]
 
 d['math'] = math
-d['whrandom'] = whrandom
+d['random'] = random
 
 def careful_pow(self, x, y, z):
     if not z:
@@ -400,7 +401,7 @@
 
   - Special security-aware versions of 'getattr' and 'hasattr',
 
-  - The Python 'string', 'math', and 'whrandom' modules, and
+  - The Python 'string', 'math', and 'random' modules, and
 
   - A special function, 'test', that supports if-then expressions.
     The 'test' function accepts any number of arguments.  If the