[pywin32-checkins] pywin32/win32/Demos NetValidatePasswordPolicy.py, 1.1, 1.1.2.1
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-26 09:03:35
|
Update of /cvsroot/pywin32/pywin32/win32/Demos In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20331/win32/Demos Modified Files: Tag: py3k NetValidatePasswordPolicy.py Log Message: many more upgrades to py3k syntax Index: NetValidatePasswordPolicy.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Demos/NetValidatePasswordPolicy.py,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** NetValidatePasswordPolicy.py 4 Jun 2008 08:18:55 -0000 1.1 --- NetValidatePasswordPolicy.py 26 Nov 2008 09:03:30 -0000 1.1.2.1 *************** *** 83,98 **** None, val_type, input) except NotImplementedError: ! print "NetValidatePasswordPolicy not implemented on this platform." return 1 ! except win32net.error, exc: ! print "NetValidatePasswordPolicy failed: ", exc return 1 if options.show_fields: ! print "NET_VALIDATE_PERSISTED_FIELDS fields:" pprint(fields) ! print "Result of %r validation is %d: %s" % \ ! (arg, status, win32api.FormatMessage(status).strip()) return 0 --- 83,98 ---- None, val_type, input) except NotImplementedError: ! print("NetValidatePasswordPolicy not implemented on this platform.") return 1 ! except win32net.error as exc: ! print("NetValidatePasswordPolicy failed: ", exc) return 1 if options.show_fields: ! print("NET_VALIDATE_PERSISTED_FIELDS fields:") pprint(fields) ! print("Result of %r validation is %d: %s" % \ ! (arg, status, win32api.FormatMessage(status).strip())) return 0 |