Update of /cvsroot/pywin32/pywin32/com/win32comext/authorization/demos
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19471/win32comext/authorization/demos
Modified Files:
EditSecurity.py EditServiceSecurity.py
Log Message:
modernize syntax: all remaining raise statements in com/* upgraded
Index: EditServiceSecurity.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/authorization/demos/EditServiceSecurity.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** EditServiceSecurity.py 26 Jul 2006 03:12:53 -0000 1.1
--- EditServiceSecurity.py 26 Nov 2008 08:52:32 -0000 1.2
***************
*** 75,79 ****
if (objecttype is not None) and (objecttype!=IID_NULL):
## Not relevent for services
! raise NotImplementedError, "Object type is not supported"
## ???? for some reason, the DACL for a service will not retain ACCESS_SYSTEM_SECURITY in an ACE ????
--- 75,79 ----
if (objecttype is not None) and (objecttype!=IID_NULL):
## Not relevent for services
! raise NotImplementedError("Object type is not supported")
## ???? for some reason, the DACL for a service will not retain ACCESS_SYSTEM_SECURITY in an ACE ????
Index: EditSecurity.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/authorization/demos/EditSecurity.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** EditSecurity.py 16 Mar 2006 22:53:08 -0000 1.1
--- EditSecurity.py 26 Nov 2008 08:52:32 -0000 1.2
***************
*** 77,81 ****
## Should not be true for file objects. Usually only used with DS objects that support security for
## their properties
! raise NotImplementedError, "Object type is not supported"
if os.path.isdir(self.FileName):
--- 77,81 ----
## Should not be true for file objects. Usually only used with DS objects that support security for
## their properties
! raise NotImplementedError("Object type is not supported")
if os.path.isdir(self.FileName):
|