[pywin32-checkins] pywin32/win32/Demos rastest.py,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-04 03:38:24
|
Update of /cvsroot/pywin32/pywin32/win32/Demos In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23408/win32/Demos Modified Files: rastest.py Log Message: remove use of string module Index: rastest.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Demos/rastest.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** rastest.py 27 Nov 2008 04:15:21 -0000 1.4 --- rastest.py 4 Dec 2008 03:38:20 -0000 1.5 *************** *** 3,7 **** import sys - import string import os import win32ras --- 3,6 ---- *************** *** 88,94 **** def Disconnect( rasEntry ): # Need to find the entry ! name = string.lower( rasEntry ) for hcon, entryName, devName, devType in win32ras.EnumConnections(): ! if string.lower( entryName ) == name: win32ras.HangUp( hcon ) print "Disconnected from", rasEntry --- 87,93 ---- def Disconnect( rasEntry ): # Need to find the entry ! name = rasEntry.lower() for hcon, entryName, devName, devType in win32ras.EnumConnections(): ! if entryName.lower() == name: win32ras.HangUp( hcon ) print "Disconnected from", rasEntry |