[Python-checkins] python/dist/src/Lib/bsddb dbtables.py,1.10,1.11

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Aug 8 02:54:23 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/bsddb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24443/Lib/bsddb
Modified Files:
	dbtables.py 
Log Message:
Purged Berkeley code of references to the long-obsolete whrandom.
Index: dbtables.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/dbtables.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** dbtables.py	12 Feb 2004 17:35:08 -0000	1.10
--- dbtables.py	8 Aug 2004 00:54:20 -0000	1.11
***************
*** 22,26 ****
 import copy
 import xdrlib
! import whrandom
 from types import ListType, StringType
 import cPickle as pickle
--- 22,26 ----
 import copy
 import xdrlib
! import random
 from types import ListType, StringType
 import cPickle as pickle
***************
*** 355,360 ****
 # but it's plenty for our database id needs!)
 p = xdrlib.Packer()
! p.pack_int(int(whrandom.random()*2147483647))
! p.pack_int(int(whrandom.random()*2147483647))
 newid = p.get_buffer()
 
--- 355,360 ----
 # but it's plenty for our database id needs!)
 p = xdrlib.Packer()
! p.pack_int(int(random.random()*2147483647))
! p.pack_int(int(random.random()*2147483647))
 newid = p.get_buffer()
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /