[pywin32-checkins] pywin32/win32/Demos/win32wnet testwnet.py, 1.2.4.1, 1.2.4.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-23 09:47:59
|
Update of /cvsroot/pywin32/pywin32/win32/Demos/win32wnet In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8245/win32/Demos/win32wnet Modified Files: Tag: py3k testwnet.py Log Message: merge various py3k friendly changes from the trunk. Index: testwnet.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Demos/win32wnet/testwnet.py,v retrieving revision 1.2.4.1 retrieving revision 1.2.4.2 diff -C2 -d -r1.2.4.1 -r1.2.4.2 *** testwnet.py 29 Aug 2008 04:59:25 -0000 1.2.4.1 --- testwnet.py 23 Oct 2008 09:45:16 -0000 1.2.4.2 *************** *** 27,31 **** win32wnet.WNetCloseEnum(k) # could do k.Close(), but this is a good test! except win32wnet.error as details: ! print(indent + "Couldn't enumerate this resource: " + details[2]) def TestOpenEnum(): --- 27,31 ---- win32wnet.WNetCloseEnum(k) # could do k.Close(), but this is a good test! except win32wnet.error as details: ! print(indent + "Couldn't enumerate this resource: " + details.strerror) def TestOpenEnum(): *************** *** 49,53 **** win32wnet.WNetAddConnection2(share.dwType, localName, share.lpRemoteName) except win32wnet.error as details: ! print("Couldn't connect: " + details[2]) continue # Have a connection. --- 49,53 ---- win32wnet.WNetAddConnection2(share.dwType, localName, share.lpRemoteName) except win32wnet.error as details: ! print("Couldn't connect: " + details.strerror) continue # Have a connection. *************** *** 57,61 **** print("Universal name of '%s' is '%s'" % (fname, win32wnet.WNetGetUniversalName(fname))) except win32wnet.error as details: ! print("Couldn't get universal name of '%s': %s" % (fname, details[2])) print("User name for this connection is", win32wnet.WNetGetUser(localName)) finally: --- 57,61 ---- print("Universal name of '%s' is '%s'" % (fname, win32wnet.WNetGetUniversalName(fname))) except win32wnet.error as details: ! print("Couldn't get universal name of '%s': %s" % (fname, details.strerror)) print("User name for this connection is", win32wnet.WNetGetUser(localName)) finally: |