Changeset 171

Show
Ignore:
Timestamp:
12/11/2004 11:35:14 PM (4 years ago)
Author:
mwm
Message:

Update inspect.py to use the random modules instead of the obsolescent randint module.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plwm/inspect.py

    r60 r171  
    1 # $Id: inspect.py,v 1.7 2001-12-06 11:08:08 petli Exp $ 
     1# $Id: inspect.py,v 1.8 2004-12-12 05:35:14 mwm Exp $ 
    22# 
    33# inspect.py -- Allow inspection of PLWM internals 
     
    2424import traceback 
    2525import struct 
    26 import whrandom 
     26import random 
    2727import cStringIO 
    2828 
     
    7676 
    7777        addr, port = self.inspect_socket.getsockname() 
    78         self.inspect_cookie = whrandom.randint(0, 0x7ffffffe) 
     78        self.inspect_cookie = random.randint(0, 0x7ffffffe) 
    7979         
    8080        self.default_screen.root.change_property(self.PLWM_INSPECT_SERVER,