Update of /cvsroot/pywin32/pywin32/win32/Demos
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27962/win32/Demos
Modified Files:
Tag: py3k
rastest.py
Log Message:
merge recent UnicodeType, string module and NeedUnicodeConversions changes from trunk
Index: rastest.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/rastest.py,v
retrieving revision 1.3.4.1
retrieving revision 1.3.4.2
diff -C2 -d -r1.3.4.1 -r1.3.4.2
*** rastest.py 29 Aug 2008 04:59:23 -0000 1.3.4.1
--- rastest.py 4 Dec 2008 05:08:41 -0000 1.3.4.2
***************
*** 3,7 ****
import sys
- import string
import os
import win32ras
--- 3,6 ----
***************
*** 89,95 ****
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)
--- 88,94 ----
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)
|