_ >   1   #!/usr/local/bin/python2.3
    1 #!/usr/bin/python
2 2
  3 3 # Adapted by bdolicki for openacs.org
  4 4 # Changes to http://dev.zope.org/CVS/postcommit_actions :
 
59 59 import string
  60 60 import getopt
  61 61 import smtplib
< >   62   import socket, whrandom, getpass
    62 import socket, getpass
63 63
  64 64 CVSROOT = os.path.split(SCRIPT_DIR)[0]
  65 65 CVSROOT_ABS = os.path.abspath('..')
 
224 224     doctored_args.append("--wait")
  225 225     tempfile.mktemp()           # Throw one away, to get initial template.
  226 226     tempfile.tempdir = "/tmp"
< >     227 ## AG: whrandom is deprecated, so if you uncomment this code,
    228 ## use random instead.
< _   227 229 ##    template = (tempfile.template or
  228 230 ##                "@%s.%d" % (os.getpid(), whrandom.randint(1000000, 9999999)))
  229 231 ##    tempfile.template = "cvs-log" + template